Request and Response methods
Request methods that you may use are:
- String getMethod()
- void setMethod(String method)
- HttpUrl getURL()
- void setURL(HttpUrl url)
- void setURL(String url) throws
MalformedURLException
- String getVersion()
- void setVersion(String version)
Response methods that you may use are:
- String getVersion()
- void setVersion(String version)
- String getStatus()
- void getStatus(String status)
- String getMessage()
- void setMessage(String message)
- String getStatusLine()
The following methods are common to both the Request
and Response objects:
- String[] getHeaderNames()
- String getHeader(String name)
- void setHeader(String name, String
value)
- void addHeader(String name, String
value)
- void deleteHeader(String name)
- NamedValue[] getHeaders()
- void setheaders(NamedValue[] headers)
- byte[] getContent()
- void setContent(byte[] content)