HttpRequest |
HttpRequest.addHeader(String name,
String value) |
Add request header.
|
HttpRequest |
HttpRequest.addHeadersAll(Map<String,Object> headers) |
Add all the request headers.
|
HttpRequest |
HttpRequest.setAcceptCompress(boolean acceptCompress) |
Specify whether to set the header "Accept-Encoding: gzip, deflate".
|
HttpRequest |
HttpRequest.setBasicAuth(String username,
String password) |
Set BASIC Authorization credentials.
|
HttpRequest |
HttpRequest.setCompressMessage(boolean compress) |
Specify whether to GZIP compress the POST or PUT message data.
|
HttpRequest |
HttpRequest.setConnectTimeout(Integer connectTimeout) |
Set the connection timeout in milliseconds.
|
HttpRequest |
HttpRequest.setContentType(String contentType) |
Set the 'Content-Type' header.
|
HttpRequest |
HttpRequest.setContext(org.apache.http.client.protocol.HttpClientContext context) |
Sets the HttpClientContext
The context stores details about the call to a server.
|
HttpRequest |
HttpRequest.setMessage(String message) |
Set the POST or PUT message body.
|
HttpRequest |
HttpRequest.setMessageData(byte[] messageData) |
Set the POST or PUT message body.
|
HttpRequest |
HttpRequest.setNtlmAuth(String username,
String password,
String workstation,
String domain) |
Set NTLM Authorization credentials.
|
HttpRequest |
HttpRequest.setParams(Map<String,String> params) |
Set the request form parameters.
|
HttpRequest |
HttpRequest.setReadLimit(int readLimit) |
Set the response content read limit in bytes.
|
HttpRequest |
HttpRequest.setSocketFactory(org.apache.http.conn.socket.LayeredConnectionSocketFactory socketFactory) |
Set an optional ConnectionSocketFactory to enable creating layered sockets such as TLS.
|
HttpRequest |
HttpRequest.setSocketTimeout(Integer socketTimeout) |
Set the socket timeout in milliseconds.
|
HttpRequest |
HttpRequest.setTimeouts(int connectTimeout,
int socketTimeout) |
Set the connect and socket timeouts in milliseconds.
|
HttpRequest |
HttpRequest.setUserAgent(String userAgent) |
Set the 'User-Agent' header.
|