Request

interface Request<RequestBody>

Represents a Http Request

Types

Link copied to clipboard
interface Builder<ReqBody : Any>

A convenience builder class for composing a Request

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val body: RequestBody?

Object of a particular Type of data that is serialized into HTTP body .

Link copied to clipboard
abstract val headers: Map<String, String>

The Key-Value pair sent as HTTP Request Header.

Link copied to clipboard
abstract val method: String

The HTTP Method of this particular Request Valid methods include GET, POST, DELETE, PUT, HEAD etc.,

Link copied to clipboard
abstract val url: URL

The uniform resource locator (URL) with a scheme of either http or https against which communication will be established.