public static interface Connection.Request extends Connection.Base<Connection.Request>
Modifier and Type | Method and Description |
---|---|
Collection<Connection.KeyVal> |
data()
Get all of the request's data parameters
|
Connection.Request |
data(Connection.KeyVal keyval)
Add a data parameter to the request
|
boolean |
followRedirects()
Get the current followRedirects configuration.
|
Connection.Request |
followRedirects(boolean followRedirects)
Configures the request to (not) follow server redirects.
|
boolean |
ignoreContentType()
Get the current ignoreContentType configuration.
|
Connection.Request |
ignoreContentType(boolean ignoreContentType)
Configures the request to ignore the Content-Type of the response.
|
boolean |
ignoreHttpErrors()
Get the current ignoreHttpErrors configuration.
|
Connection.Request |
ignoreHttpErrors(boolean ignoreHttpErrors)
Configures the request to ignore HTTP errors in the response.
|
int |
maxBodySize()
Get the maximum body size, in milliseconds.
|
Connection.Request |
maxBodySize(int bytes)
Update the maximum body size, in milliseconds.
|
Parser |
parser()
Get the current parser to use when parsing the document.
|
Connection.Request |
parser(Parser parser)
Specify the parser to use when parsing the document.
|
int |
timeout()
Get the request timeout, in milliseconds.
|
Connection.Request |
timeout(int millis)
Update the request timeout.
|
cookie, cookie, cookies, hasCookie, hasHeader, header, header, headers, method, method, removeCookie, removeHeader, url, url
int timeout()
Connection.Request timeout(int millis)
millis
- timeout, in millisecondsint maxBodySize()
Connection.Request maxBodySize(int bytes)
bytes
- maximum body size, in milliseconds.boolean followRedirects()
Connection.Request followRedirects(boolean followRedirects)
followRedirects
- true if server redirects should be followed.boolean ignoreHttpErrors()
Connection.Request ignoreHttpErrors(boolean ignoreHttpErrors)
ignoreHttpErrors
- set to true to ignore HTTP errors.boolean ignoreContentType()
Connection.Request ignoreContentType(boolean ignoreContentType)
ignoreContentType
- set to true to ignore the content type.Connection.Request data(Connection.KeyVal keyval)
keyval
- data to add.Collection<Connection.KeyVal> data()
Connection.Request parser(Parser parser)
parser
- parser to use.Parser parser()
Copyright © 2009–2013 Jonathan Hedley. All rights reserved.