Object reference

HTTPResponse

The HTTPResponse object, its operations, examples and notes.

Object description

HTTPResponse represents a response returned by an HTTP request. It is created by HTTP and cannot be constructed directly with new.

Availability: ZPE 1.14.11 is the first version to support HTTPResponse.

Properties

  • status

    The numeric HTTP status code.

  • body

    The response body as a string.

  • headers

    A map of response header names and values.

  • url

    The final response URL after redirects.

Object functions