Package com.squareup.okhttp
Class Request
java.lang.Object
com.squareup.okhttp.Request
public final class Request extends Object
An HTTP request. Instances of this class are immutable if their
body
is null or itself immutable.
Warning: Experimental OkHttp 2.0 API
This class is in beta. APIs are subject to change!-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequest.Bodystatic classRequest.Builder -
Method Summary
Modifier and Type Method Description Request.Bodybody()Stringheader(String name)intheaderCount()StringheaderName(int index)Set<String>headerNames()List<String>headers(String name)StringheaderValue(int index)Stringmethod()Objecttag()URLurl()StringurlString()
-
Method Details
-
url
-
urlString
-
method
-
header
-
headers
-
headerNames
-
headerCount
public int headerCount() -
headerName
-
headerValue
-
body
-
tag
-