- ACCEPT - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.1
- accept(String) - Method in interface kong.unirest.HttpRequest
-
The Accept heder to send (e.g.
- accept(String, String, Long, Long) - Method in interface kong.unirest.ProgressMonitor
-
Accept stats about the current file upload chunk for a file.
- ACCEPT_CHARSET - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.2
- ACCEPT_ENCODING - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.3
- ACCEPT_LANGUAGE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.4
- ACCEPT_RANGES - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.5
- add(String, String) - Method in class kong.unirest.Headers
-
Add a header element
- add(String, Supplier<String>) - Method in class kong.unirest.Headers
-
Add a header element with a supplier which will be evaluated on request
- add(String, Object) - Method in class kong.unirest.JsonPatch
-
- add(String, Object) - Method in interface kong.unirest.JsonPatchRequest
-
- addDefaultHeader(String, String) - Method in class kong.unirest.Config
-
Add default header to appear on all requests
- addInterceptor(HttpRequestInterceptor) - Method in class kong.unirest.Config
-
Add a HttpRequestInterceptor to the clients.
- addShutdownHook(boolean) - Method in class kong.unirest.Config
-
Register the client with a system shutdown hook.
- AGE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.6
- all() - Method in class kong.unirest.Headers
-
Get all of the headers
- all() - Method in class kong.unirest.HttpMethod
-
- ALLOW - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7
- ApacheAsyncClient - Class in kong.unirest.apache
-
- ApacheAsyncClient(Config) - Constructor for class kong.unirest.apache.ApacheAsyncClient
-
- ApacheAsyncClient(HttpAsyncClient, Config, PoolingNHttpClientConnectionManager, AsyncIdleConnectionMonitorThread) - Constructor for class kong.unirest.apache.ApacheAsyncClient
-
- ApacheClient - Class in kong.unirest.apache
-
- ApacheClient(Config) - Constructor for class kong.unirest.apache.ApacheClient
-
- ApacheClient(HttpClient, Config, PoolingHttpClientConnectionManager, SyncIdleConnectionMonitorThread) - Constructor for class kong.unirest.apache.ApacheClient
-
- APPLICATION_ATOM_XML - Static variable in class kong.unirest.ContentType
-
- APPLICATION_FORM_URLENCODED - Static variable in class kong.unirest.ContentType
-
- APPLICATION_JSON - Static variable in class kong.unirest.ContentType
-
- APPLICATION_JSON_PATCH - Static variable in class kong.unirest.ContentType
-
- APPLICATION_OCTET_STREAM - Static variable in class kong.unirest.ContentType
-
- APPLICATION_SVG_XML - Static variable in class kong.unirest.ContentType
-
- APPLICATION_XHTML_XML - Static variable in class kong.unirest.ContentType
-
- APPLICATION_XML - Static variable in class kong.unirest.ContentType
-
- asEmpty() - Method in interface kong.unirest.HttpRequest
-
Executes the request and returns the response without parsing the body
- asEmptyAsync() - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns the response without parsing the body
- asEmptyAsync(Callback<Empty>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns a empty response which is passed to a callback
- asFile(String) - Method in interface kong.unirest.HttpRequest
-
Executes the request and writes the contents into a file
- asFileAsync(String) - Method in interface kong.unirest.HttpRequest
-
asynchronously executes the request and writes the contents into a file
- asFileAsync(String, Callback<File>) - Method in interface kong.unirest.HttpRequest
-
asynchronously executes the request and writes the contents into a file
- asJson() - Method in interface kong.unirest.HttpRequest
-
Executes the request and returns the response with the body mapped into a JsonNode
- asJsonAsync() - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns the response with the body mapped into a JsonNode
- asJsonAsync(Callback<JsonNode>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns the response with the body mapped into a JsonNode
- asObject(Class<? extends T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request and returns the response with the body mapped into T by a configured ObjectMapper
- asObject(GenericType<T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request and returns the response with the body mapped into T by a configured ObjectMapper
- asObject(Function<RawResponse, T>) - Method in interface kong.unirest.HttpRequest
-
Execute the request and pass the raw response to a function for mapping.
- asObjectAsync(Class<? extends T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns response with the body mapped into T by a configured ObjectMapper
- asObjectAsync(Class<? extends T>, Callback<T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously, mapping to a type via the configured object mapper and then passed to a callback handler.
- asObjectAsync(GenericType<T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously, and use a GenericType with the ObjectMapper
- asObjectAsync(GenericType<T>, Callback<T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously, and use a GenericType with the ObjectMapper
- asObjectAsync(Function<RawResponse, T>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously, and pass the raw response to a function for mapping.
- asPaged(Function<HttpRequest, HttpResponse>, Function<HttpResponse<T>, String>) - Method in interface kong.unirest.HttpRequest
-
Allows for following paging links common in many APIs.
- asString() - Method in interface kong.unirest.HttpRequest
-
Executes the request and returns the response with the body mapped into a String
- asStringAsync() - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns the response with the body mapped into a String
- asStringAsync(Callback<String>) - Method in interface kong.unirest.HttpRequest
-
Executes the request asynchronously and returns the response with the body mapped into a String
- AsyncClient - Interface in kong.unirest
-
- asyncClient(HttpAsyncClient) - Method in class kong.unirest.Config
-
Set the asynchronous AbstractHttpAsyncClient implementation to use for every asynchronous request
- asyncClient(AsyncClient) - Method in class kong.unirest.Config
-
Set the full async configuration including monitors.
- asyncClient(Function<Config, AsyncClient>) - Method in class kong.unirest.Config
-
Set the full async configuration including monitors.
- AsyncIdleConnectionMonitorThread - Class in kong.unirest.apache
-
- AsyncIdleConnectionMonitorThread(PoolingNHttpClientConnectionManager) - Constructor for class kong.unirest.apache.AsyncIdleConnectionMonitorThread
-
- AUTHORIZATION - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8
- automaticRetries(boolean) - Method in class kong.unirest.Config
-
Automaticly retry certain recoverable errors like socket timeouts.
- CACHE_CONTROL - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.9
- Callback<T> - Interface in kong.unirest
-
- cancelled() - Method in interface kong.unirest.Callback
-
- charset(Charset) - Method in interface kong.unirest.HttpRequestWithBody
-
- charset(Charset) - Method in interface kong.unirest.MultipartBody
-
Set the encoding of the request body
- charset(Charset) - Method in interface kong.unirest.RequestBodyEntity
-
- clear() - Method in class kong.unirest.Headers
-
Clear the headers!
- clearDefaultHeaders() - Method in class kong.unirest.Config
-
Clear default headers
- Client - Interface in kong.unirest
-
- clientCertificateStore(KeyStore, String) - Method in class kong.unirest.Config
-
Set a custom keystore
- clientCertificateStore(String, String) - Method in class kong.unirest.Config
-
Set a custom keystore via a file path.
- close() - Method in class kong.unirest.apache.ApacheAsyncClient
-
- close() - Method in class kong.unirest.apache.ApacheClient
-
- close() - Method in interface kong.unirest.AsyncClient
-
- close() - Method in interface kong.unirest.Client
-
- close() - Method in class kong.unirest.UnirestInstance
-
Wraps shutdown and will automatically be called when UnirestInstance is
used with try-with-resource.
- compareTo(Object) - Method in class kong.unirest.BodyPart
-
- compareTo(GenericType<T>) - Method in class kong.unirest.GenericType
-
- complete(HttpResponseSummary, Exception) - Method in interface kong.unirest.MetricContext
-
Finishes a Http Request.
- completed(HttpResponse<T>) - Method in interface kong.unirest.Callback
-
- concurrency(int, int) - Method in class kong.unirest.Config
-
Set the concurrency levels
- Config - Class in kong.unirest
-
- Config() - Constructor for class kong.unirest.Config
-
- config - Variable in class kong.unirest.RawResponseBase
-
- config() - Static method in class kong.unirest.Unirest
-
Access the default configuration for the primary Unirest instance.
- config() - Method in class kong.unirest.UnirestInstance
-
Access the default configuration for the primary Unirest instance.
- CONNECTION - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.10
- connectTimeout(int) - Method in class kong.unirest.Config
-
Set the connection timeout
- connectTimeout(int) - Method in interface kong.unirest.HttpRequest
-
Set a connect timeout for this request
- containsKey(String) - Method in class kong.unirest.Headers
-
Check if a header is present
- CONTENT_ENCODING - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11
- CONTENT_LANGUAGE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.12
- CONTENT_LENGTH - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13
- CONTENT_LOCATION - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.14
- CONTENT_MD5 - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.15
- CONTENT_RANGE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.16
- CONTENT_TYPE - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17
- CONTENT_TYPE - Static variable in interface kong.unirest.JsonPatchRequest
-
- ContentType - Class in kong.unirest
-
- contentType(String) - Method in interface kong.unirest.MultipartBody
-
Set the mime-type of the request body
- cookieSpec(String) - Method in class kong.unirest.Config
-
Sets a cookie policy
Acceptable values:
'default' (same as Netscape),
'netscape',
'ignoreCookies',
'standard' (RFC 6265 interoprability profile) ,
'standard-strict' (RFC 6265 strict profile)
- copy(String, String) - Method in class kong.unirest.JsonPatch
-
- copy(String, String) - Method in interface kong.unirest.JsonPatchRequest
-
- create(String) - Static method in class kong.unirest.ContentType
-
- create(String, Charset) - Static method in class kong.unirest.ContentType
-
- IF - Static variable in class kong.unirest.HeaderNames
-
RFC 2518 (WevDAV) Section 9.4
- IF_MATCH - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.24
- IF_MODIFIED_SINCE - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25
- IF_NONE_MATCH - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.26
- IF_RANGE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.27
- IF_UNMODIFIED_SINCE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.28
- ifFailure(Consumer<HttpResponse<T>>) - Method in interface kong.unirest.HttpResponse
-
If the response was NOT a 200-series response or a mapping exception happened.
- ifFailure(Class<? extends E>, Consumer<HttpResponse<E>>) - Method in interface kong.unirest.HttpResponse
-
If the response was NOT a 200-series response or a mapping exception happened.
- ifFailure(Consumer<HttpResponse<T>>) - Method in class kong.unirest.PagedList
-
For each failed response if the response was NOT a 200-series response or a mapping exception happened.
- ifSuccess(Consumer<HttpResponse<T>>) - Method in interface kong.unirest.HttpResponse
-
If the response was a 200-series response.
- ifSuccess(Consumer<HttpResponse<T>>) - Method in class kong.unirest.PagedList
-
For each successful response If the response was a 200-series response.
- IMAGE_BMP - Static variable in class kong.unirest.ContentType
-
- IMAGE_GIF - Static variable in class kong.unirest.ContentType
-
- IMAGE_JPEG - Static variable in class kong.unirest.ContentType
-
- IMAGE_PNG - Static variable in class kong.unirest.ContentType
-
- IMAGE_SVG - Static variable in class kong.unirest.ContentType
-
- IMAGE_TIFF - Static variable in class kong.unirest.ContentType
-
- IMAGE_WEBP - Static variable in class kong.unirest.ContentType
-
- InputStreamPart - Class in kong.unirest
-
- instrumentWith(UniMetric) - Method in class kong.unirest.Config
-
Add a metric object for instrumentation
- isArray() - Method in class kong.unirest.JsonNode
-
- isAuthenticated() - Method in class kong.unirest.Proxy
-
- isAutomaticRetries() - Method in class kong.unirest.Config
-
- isEntityBody() - Method in interface kong.unirest.Body
-
- isFile() - Method in class kong.unirest.BodyPart
-
- isFile() - Method in class kong.unirest.ByteArrayPart
-
- isFile() - Method in class kong.unirest.InputStreamPart
-
- isFile() - Method in class kong.unirest.ParamPart
-
- isMultiPart() - Method in interface kong.unirest.Body
-
- isRequestCompressionOn() - Method in class kong.unirest.Config
-
- isRunning() - Method in class kong.unirest.apache.ApacheAsyncClient
-
- isRunning() - Method in interface kong.unirest.AsyncClient
-
- isRunning() - Method in class kong.unirest.Config
-
Does the config have currently running clients? Find out here.
- isRunning() - Static method in class kong.unirest.Unirest
-
Does the config have currently running clients? Find out here.
- isRunning() - Method in class kong.unirest.UnirestInstance
-
Does the config have currently running clients? Find out here.
- isSuccess() - Method in interface kong.unirest.HttpResponse
-
- isVerifySsl() - Method in class kong.unirest.Config
-
- PagedList<T> - Class in kong.unirest
-
- PagedList() - Constructor for class kong.unirest.PagedList
-
- ParamPart - Class in kong.unirest
-
- PATCH - Static variable in class kong.unirest.HttpMethod
-
- patch(String) - Static method in class kong.unirest.Unirest
-
Start a PATCH HttpRequest which supports a body from the primary config
- patch(String) - Method in class kong.unirest.UnirestInstance
-
Start a PATCH HttpRequest which supports a body from the primary config
- POST - Static variable in class kong.unirest.HttpMethod
-
- post(String) - Static method in class kong.unirest.Unirest
-
Start a POST HttpRequest which supports a body from the primary config
- post(String) - Method in class kong.unirest.UnirestInstance
-
Start a POST HttpRequest which supports a body from the primary config
- PRAGMA - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32
- primaryInstance() - Static method in class kong.unirest.Unirest
-
return the primary UnirestInstance.
- ProgressMonitor - Interface in kong.unirest
-
A ProgressMonitor is a functional interface which can be passed to unirest for the purposes of
monitoring file uploads.
- proxy(Proxy) - Method in class kong.unirest.Config
-
Set a proxy
- proxy(String, int) - Method in class kong.unirest.Config
-
Set a proxy
- proxy(String, int, String, String) - Method in class kong.unirest.Config
-
Set an authenticated proxy
- proxy(String, int) - Method in interface kong.unirest.HttpRequest
-
Set a proxy for this request.
- Proxy - Class in kong.unirest
-
- Proxy(String, Integer) - Constructor for class kong.unirest.Proxy
-
- Proxy(String, Integer, String, String) - Constructor for class kong.unirest.Proxy
-
- PROXY_AUTHENTICATE - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.33
- PROXY_AUTHORIZATION - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.34
- PUT - Static variable in class kong.unirest.HttpMethod
-
- put(String) - Static method in class kong.unirest.Unirest
-
Start a PUT HttpRequest which supports a body from the primary config
- put(String) - Method in class kong.unirest.UnirestInstance
-
Start a PUT HttpRequest which supports a body from the primary config
- putAll(Headers) - Method in class kong.unirest.Headers
-
Add a bunch of headers at once
- SERVER - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38
- setDefaultBasicAuth(String, String) - Method in class kong.unirest.Config
-
Default basic auth credentials
- setDefaultHeader(String, String) - Method in class kong.unirest.Config
-
Set default header to appear on all requests
- setDefaultHeader(String, Supplier<String>) - Method in class kong.unirest.Config
-
Set default header to appear on all requests, value is through a Supplier
This is useful for adding tracing elements to requests.
- setDefaultResponseEncoding(String) - Method in class kong.unirest.Config
-
Set the default encoding that will be used for serialization into Strings.
- setObjectMapper(ObjectMapper) - Method in class kong.unirest.Config
-
Set the ObjectMapper implementation to use for Response to Object binding
- shouldAddShutdownHook() - Method in class kong.unirest.Config
-
- shutDown(boolean) - Method in class kong.unirest.Config
-
Shut down the configuration and its clients.
- shutDown() - Static method in class kong.unirest.Unirest
-
Close the asynchronous client and its event loop.
- shutDown(boolean) - Static method in class kong.unirest.Unirest
-
Close the asynchronous client and its event loop.
- shutDown() - Method in class kong.unirest.UnirestInstance
-
Close the asynchronous client and its event loop.
- shutDown(boolean) - Method in class kong.unirest.UnirestInstance
-
Close the asynchronous client and its event loop.
- size() - Method in class kong.unirest.Headers
-
Get the number of header keys.
- socketTimeout(int) - Method in class kong.unirest.Config
-
Set the socket timeout
- socketTimeout(int) - Method in interface kong.unirest.HttpRequest
-
Set a socket timeout for this request
- spawnInstance() - Static method in class kong.unirest.Unirest
-
Spawn a new Unirest Instance with a new config.
- STATUS_URI - Static variable in class kong.unirest.HeaderNames
-
RFC 2518 (WevDAV) Section 9.7
- StringResponse - Class in kong.unirest
-
- StringResponse(RawResponse, String) - Constructor for class kong.unirest.StringResponse
-
- SyncIdleConnectionMonitorThread - Class in kong.unirest.apache
-
- SyncIdleConnectionMonitorThread(HttpClientConnectionManager) - Constructor for class kong.unirest.apache.SyncIdleConnectionMonitorThread
-