public interface IHttpRequest
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String header,
java.lang.String value)
Adds a header to this request
|
java.util.List<HeaderOption> |
getHeaders()
Gets the headers
|
HttpMethod |
getHttpMethod()
Gets the HTTP method
|
java.util.List<Option> |
getOptions()
Gets the options
|
java.net.URL |
getRequestUrl()
Gets the request URL
|
boolean |
getUseCaches()
Gets useCaches parameter
|
void |
setUseCaches(boolean useCaches)
Sets useCaches parameter to cache the response
|
java.net.URL getRequestUrl()
HttpMethod getHttpMethod()
java.util.List<HeaderOption> getHeaders()
java.util.List<Option> getOptions()
void addHeader(java.lang.String header, java.lang.String value)
header
- the name of the headervalue
- the value of the headervoid setUseCaches(boolean useCaches)
useCaches
- the value of useCachesboolean getUseCaches()