android-components / mozilla.components.concept.fetch / Request / <init>


Request(url: String, method: Method = Method.GET, headers: MutableHeaders? = MutableHeaders(), connectTimeout: Pair<Long, TimeUnit>? = null, readTimeout: Pair<Long, TimeUnit>? = null, body: Body? = null, redirect: Redirect = Redirect.FOLLOW, cookiePolicy: CookiePolicy = CookiePolicy.INCLUDE, useCaches: Boolean = true)

The Request data class represents a resource request to be send by a Client.

It’s API is inspired by the Request interface of the Web Fetch API: