HttpRequest

Represents the data for an HTTP request

Types

Link copied to clipboard
class Builder

Builder helper class for constructing HttpRequests.

Link copied to clipboard
object Companion
Link copied to clipboard
object Headers

Object containing some constants for commonly used HTTP Headers

Properties

Link copied to clipboard
val body: String?

The optional body of the request as a string.

Link copied to clipboard
val etag: String?
Link copied to clipboard

The optional headers to be included in the request as a map of key-value pairs.

Link copied to clipboard

Indicates whether the request body should be compressed using GZIP encoding. Default is false.

Link copied to clipboard

The HTTP method of the request.

Link copied to clipboard
val url: URL

The URL to which the request will be sent.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String