Package-level declarations

Types

Link copied to clipboard

Defines the structure and behavior for representing content types.

Link copied to clipboard

Represents an HTTP request with its associated properties.

Link copied to clipboard

Represents the body content of an HTTP request. It can either be a JSON payload or form data.

Link copied to clipboard

Represents an HTTP response including its metadata and body content.

Link copied to clipboard

Encapsulates the body content of an HTTP response.

Link copied to clipboard

Represents a URL structure, defining its essential parts.

Link copied to clipboard
data class TracyHttpUrlImpl(val scheme: String, val host: String, val pathSegments: List<String>) : TracyHttpUrl

Direct implementation of TracyHttpUrl.

Functions

Link copied to clipboard
Link copied to clipboard

Converts a ByteArray into a TracyHttpRequestBody based on the provided contentType. The given ByteArray is decoded according to the specified charset.

Link copied to clipboard

Converts the current MediaType instance into a corresponding TracyContentType instance.

Link copied to clipboard

Converts an instance of HttpUrl into a TracyHttpUrl object by extracting its scheme, host, and path segments, and constructing a new TracyHttpUrlImpl instance.