TracyHttpResponse

Represents an HTTP response including its metadata and body content.

Properties

Link copied to clipboard

The body of the HTTP response, encapsulated in a TracyHttpResponseBody object, which can represent different response formats, such as JSON.

Link copied to clipboard
abstract val code: Int

The HTTP status code of the response, indicating the result of the HTTP request (e.g., 200 for success, 404 for not found).

Link copied to clipboard

The content type of the HTTP response, specifying the media type of the body. This value may be null if the content type is not specified.

Link copied to clipboard
abstract val url: TracyHttpUrl

The URL associated with the HTTP response (i.e., where the initial request was made to).

Functions

Link copied to clipboard
abstract fun isError(): Boolean