Modifier and Type | Method and Description |
---|---|
Request |
Request.addHeader(org.apache.http.Header header) |
Request |
Request.addHeader(String name,
String value) |
Request |
Request.body(org.apache.http.HttpEntity entity) |
Request |
Request.bodyByteArray(byte[] b) |
Request |
Request.bodyByteArray(byte[] b,
org.apache.http.entity.ContentType contentType) |
Request |
Request.bodyByteArray(byte[] b,
int off,
int len) |
Request |
Request.bodyByteArray(byte[] b,
int off,
int len,
org.apache.http.entity.ContentType contentType) |
Request |
Request.bodyFile(File file,
org.apache.http.entity.ContentType contentType) |
Request |
Request.bodyForm(Iterable<? extends org.apache.http.NameValuePair> formParams) |
Request |
Request.bodyForm(Iterable<? extends org.apache.http.NameValuePair> formParams,
Charset charset) |
Request |
Request.bodyForm(org.apache.http.NameValuePair... formParams) |
Request |
Request.bodyStream(InputStream inStream) |
Request |
Request.bodyStream(InputStream inStream,
org.apache.http.entity.ContentType contentType) |
Request |
Request.bodyString(String s,
org.apache.http.entity.ContentType contentType) |
Request |
Request.config(String param,
Object object)
Deprecated.
(4.3)
|
Request |
Request.connectTimeout(int timeout) |
static Request |
Request.Delete(String uri) |
static Request |
Request.Delete(URI uri) |
Request |
Request.elementCharset(String charset)
Deprecated.
(4.3)
|
static Request |
Request.Get(String uri) |
static Request |
Request.Get(URI uri) |
static Request |
Request.Head(String uri) |
static Request |
Request.Head(URI uri) |
static Request |
Request.Options(String uri) |
static Request |
Request.Options(URI uri) |
static Request |
Request.Patch(String uri) |
static Request |
Request.Patch(URI uri) |
static Request |
Request.Post(String uri) |
static Request |
Request.Post(URI uri) |
static Request |
Request.Put(String uri) |
static Request |
Request.Put(URI uri) |
Request |
Request.removeConfig(String param)
Deprecated.
(4.3)
|
Request |
Request.removeHeader(org.apache.http.Header header) |
Request |
Request.removeHeaders(String name) |
Request |
Request.setCacheControl(String cacheControl) |
Request |
Request.setDate(Date date) |
Request |
Request.setHeader(org.apache.http.Header header) |
Request |
Request.setHeader(String name,
String value) |
Request |
Request.setHeaders(org.apache.http.Header... headers) |
Request |
Request.setIfModifiedSince(Date date) |
Request |
Request.setIfUnmodifiedSince(Date date) |
Request |
Request.socketTimeout(int timeout) |
Request |
Request.staleConnectionCheck(boolean b)
Deprecated.
(4.4)
|
static Request |
Request.Trace(String uri) |
static Request |
Request.Trace(URI uri) |
Request |
Request.useExpectContinue() |
Request |
Request.userAgent(String agent) |
Request |
Request.version(org.apache.http.HttpVersion version) |
Request |
Request.viaProxy(org.apache.http.HttpHost proxy) |
Request |
Request.viaProxy(String proxy) |
Modifier and Type | Method and Description |
---|---|
Response |
Executor.execute(Request request)
Executes the request.
|
Future<Content> |
Async.execute(Request request) |
Future<Content> |
Async.execute(Request request,
org.apache.http.concurrent.FutureCallback<Content> callback) |
<T> Future<T> |
Async.execute(Request request,
ResponseHandler<T> handler) |
<T> Future<T> |
Async.execute(Request request,
ResponseHandler<T> handler,
org.apache.http.concurrent.FutureCallback<T> callback) |
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.