Request

abstract class Request

Represents an HTTP request.

Since

200.2.0

Types

Link copied to clipboard
abstract class Builder

A builder to create and configure a Request instance.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Header(val name: String, val value: String)

Represents the name and value of a HTTP request/response header.

Link copied to clipboard
sealed class Method

Defines a set of supported HTTP request methods.

Link copied to clipboard
data class Parameter(val name: String, val value: String)

Represents the name and the value of a network request parameter.

Properties

Link copied to clipboard
abstract val headers: List<Request.Header>

the headers of the request, represented as a map of header names to their corresponding values

Link copied to clipboard
abstract val method: Request.Method

the HTTP method of the request

Link copied to clipboard

the query parameters of the request

Link copied to clipboard
abstract val url: String

the URL of the request

Functions

Link copied to clipboard
abstract fun newBuilder(): Request.Builder

Creates a Request.Builder that is initialized with this request. Allows modifying existing requests, for example during request interception.