okhttp / okhttp3 / Request

Request

class Request

An HTTP request. Instances of this class are immutable if their body is null or itself immutable.

Types

Name Summary
Builder class Builder

Properties

Name Summary
body val body:RequestBody?
cacheControl Returns the cache control directives for this response. This is never null, even if this response contains no Cache-Control header.val cacheControl:CacheControl
headers val headers:Headers
isHttps val isHttps:Boolean
method val method:String
url val url:HttpUrl

Functions

Name Summary
header fun header(name:String):String?
headers fun headers(name:String):List<String>
newBuilder fun newBuilder(): Builder
tag Returns the tag attached with Object.class as a key, or null if no tag is attached with that key.fun tag():Any?
Returns the tag attached with type as a key, or null if no tag is attached with that key.fun <T> tag(type:Class<out T>): T?
toString fun toString():String