HttpRequest

interface HttpRequest

Encapsulates an HTTP/HTTPS request.

Since

8.30

Types

Link copied to clipboard
sealed class RequestContentEntry

A piece of content to send with a request.

Properties

Link copied to clipboard

The individual content parts of the request. This may be null or empty (for GET requests), have one entry (for a typical request), or have multiple entries (for multipart-form/data requests).

Link copied to clipboard

Whether the HTTP request should follow redirects.

Link copied to clipboard
open val headers: List<Pair<String, String>>?

Additional HTTP headers to include in the HTTP request.

Link copied to clipboard
abstract val method: String

The HTTP method to use for the HTTP request.

Link copied to clipboard
abstract val url: String

The URL to load as part of the HTTP request.