Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

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.

B

basicAuth(String, String) - Method in interface kong.unirest.HttpRequest
Basic auth credentials
BasicResponse<T> - Class in kong.unirest
 
BasicResponse(RawResponse, T) - Constructor for class kong.unirest.BasicResponse
 
BasicResponse(RawResponse, String, RuntimeException) - Constructor for class kong.unirest.BasicResponse
 
begin(HttpRequestSummary) - Method in interface kong.unirest.UniMetric
Factory method for a MetricContext
Body - Interface in kong.unirest
 
body(JsonNode) - Method in interface kong.unirest.HttpRequestWithBody
 
body(String) - Method in interface kong.unirest.HttpRequestWithBody
 
body(Object) - Method in interface kong.unirest.HttpRequestWithBody
 
body(byte[]) - Method in interface kong.unirest.HttpRequestWithBody
 
body(JSONObject) - Method in interface kong.unirest.HttpRequestWithBody
 
body(JSONArray) - Method in interface kong.unirest.HttpRequestWithBody
 
body(byte[]) - Method in interface kong.unirest.RequestBodyEntity
 
body(String) - Method in interface kong.unirest.RequestBodyEntity
 
body(JsonNode) - Method in interface kong.unirest.RequestBodyEntity
 
BodyPart<T> - Class in kong.unirest
 
BodyPart(T, String, String) - Constructor for class kong.unirest.BodyPart
 
ByteArrayPart - Class in kong.unirest
 

C

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
 

D

DATE - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18
DAV - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.1
DEFAULT_CONNECT_TIMEOUT - Static variable in class kong.unirest.Config
 
DEFAULT_CONNECTION_TIMEOUT - Static variable in class kong.unirest.Config
 
DEFAULT_MAX_CONNECTIONS - Static variable in class kong.unirest.Config
 
DEFAULT_MAX_PER_ROUTE - Static variable in class kong.unirest.Config
 
DEFAULT_SOCKET_TIMEOUT - Static variable in class kong.unirest.Config
 
DELETE - Static variable in class kong.unirest.HttpMethod
 
delete(String) - Static method in class kong.unirest.Unirest
Start a DELETE HttpRequest which supports a body from the primary config
delete(String) - Method in class kong.unirest.UnirestInstance
Start a DELETE HttpRequest which supports a body from the primary config
DEPTH - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.2
DESTINATION - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.3

E

Empty - Class in kong.unirest
 
enableCookieManagement(boolean) - Method in class kong.unirest.Config
Allow the client to manage cookies.
equals(Object) - Method in class kong.unirest.JsonPatchItem
 
ETAG - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.19
EXPECT - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.20
EXPIRES - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21

F

failed(UnirestException) - Method in interface kong.unirest.Callback
 
field(String, Collection<?>) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, File) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, File, String) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, Object) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, Object, String) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, InputStream, ContentType, String) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, InputStream, String) - Method in interface kong.unirest.HttpRequestWithBody
 
field(String, String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, String, String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, Collection<?>) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, File) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, File, String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, InputStream, ContentType) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, InputStream, ContentType, String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, byte[], ContentType, String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, InputStream, String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
field(String, byte[], String) - Method in interface kong.unirest.MultipartBody
add a simple field with a name and value
fields(Map<String, Object>) - Method in interface kong.unirest.HttpRequestWithBody
 
FileResponse - Class in kong.unirest
 
FileResponse(RawResponse, String) - Constructor for class kong.unirest.FileResponse
 
followRedirects(boolean) - Method in class kong.unirest.Config
Allow the client to follow redirects.
FROM - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22

G

GenericType<T> - Class in kong.unirest
 
GenericType() - Constructor for class kong.unirest.GenericType
 
get(String) - Method in class kong.unirest.Headers
Get all the values for a header name
GET - Static variable in class kong.unirest.HttpMethod
 
get(String) - Static method in class kong.unirest.Unirest
Start a GET HttpRequest which does not support a body from the primary config
get(String) - Method in class kong.unirest.UnirestInstance
Start a GET HttpRequest which does not support a body from the primary config
getArray() - Method in class kong.unirest.JsonNode
 
getAsyncClient() - Method in class kong.unirest.Config
Return the current HttpAsyncClient.
getBodies() - Method in class kong.unirest.PagedList
 
getBody() - Method in class kong.unirest.BasicResponse
 
getBody() - Method in class kong.unirest.FileResponse
 
getBody() - Method in interface kong.unirest.HttpRequest
 
getBody() - Method in interface kong.unirest.HttpResponse
 
getBody() - Method in class kong.unirest.JsonResponse
 
getBody() - Method in class kong.unirest.StringResponse
 
getCharset() - Method in interface kong.unirest.Body
 
getCharset() - Method in interface kong.unirest.HttpRequestWithBody
 
getCharSet() - Method in class kong.unirest.RawResponseBase
 
getClient() - Method in class kong.unirest.apache.ApacheAsyncClient
 
getClient() - Method in class kong.unirest.apache.ApacheClient
 
getClient() - Method in interface kong.unirest.AsyncClient
 
getClient() - Method in interface kong.unirest.Client
 
getClient() - Method in class kong.unirest.Config
Return the current Client.
getConfig() - Method in interface kong.unirest.RawResponse
 
getConfig() - Method in class kong.unirest.RawResponseBase
 
getConnectionTimeout() - Method in class kong.unirest.Config
 
getConnectTimeout() - Method in interface kong.unirest.HttpRequest
 
getContent() - Method in interface kong.unirest.RawResponse
 
getContentAsBytes() - Method in interface kong.unirest.RawResponse
 
getContentAsString() - Method in interface kong.unirest.RawResponse
 
getContentAsString(String) - Method in interface kong.unirest.RawResponse
 
getContentReader() - Method in interface kong.unirest.RawResponse
 
getContentType() - Method in class kong.unirest.BodyPart
 
getContentType() - Method in interface kong.unirest.RawResponse
 
getCookieSpec() - Method in class kong.unirest.Config
 
getDefaultHeaders() - Method in class kong.unirest.Config
Return default headers that are added to every request
getDefaultResponseEncoding() - Method in class kong.unirest.Config
 
getEnabledCookieManagement() - Method in class kong.unirest.Config
 
getEncoding() - Method in interface kong.unirest.RawResponse
 
getFileName() - Method in class kong.unirest.BodyPart
 
getFileName() - Method in class kong.unirest.ByteArrayPart
 
getFileName() - Method in class kong.unirest.InputStreamPart
 
getFirst(String) - Method in class kong.unirest.Headers
Get the first header value for a name
getFollowRedirects() - Method in class kong.unirest.Config
 
getHeaders() - Method in interface kong.unirest.HttpRequest
 
getHeaders() - Method in interface kong.unirest.HttpResponse
 
getHeaders() - Method in interface kong.unirest.RawResponse
 
getHost() - Method in class kong.unirest.Proxy
 
getHttpMethod() - Method in interface kong.unirest.HttpRequest
 
getHttpMethod() - Method in interface kong.unirest.HttpRequestSummary
 
getInterceptors() - Method in class kong.unirest.Config
 
getKeystore() - Method in class kong.unirest.Config
 
getKeyStorePassword() - Method in class kong.unirest.Config
 
getManager() - Method in class kong.unirest.apache.ApacheClient
 
getMaxConnections() - Method in class kong.unirest.Config
 
getMaxPerRoutes() - Method in class kong.unirest.Config
 
getMetric() - Method in class kong.unirest.Config
 
getMimeType() - Method in class kong.unirest.ContentType
 
getMode() - Method in interface kong.unirest.Body
 
getMonitor() - Method in interface kong.unirest.Body
 
getName() - Method in class kong.unirest.BodyPart
 
getName() - Method in interface kong.unirest.Header
 
getObject() - Method in class kong.unirest.JsonNode
 
getObjectMapper() - Method in class kong.unirest.Config
 
getOp() - Method in class kong.unirest.JsonPatchItem
 
getOperations() - Method in class kong.unirest.JsonPatch
 
getOperationtype() - Method in enum kong.unirest.JsonPatchOperation
 
getOriginalBody() - Method in exception kong.unirest.UnirestParsingException
 
getParsingError() - Method in interface kong.unirest.HttpResponse
If the transformation to the body failed by an exception it will be kept here
getPartType() - Method in class kong.unirest.BodyPart
 
getPassword() - Method in class kong.unirest.Proxy
 
getPath() - Method in class kong.unirest.JsonPatchItem
 
getPort() - Method in class kong.unirest.Proxy
 
getProxy() - Method in class kong.unirest.Config
 
getProxy() - Method in interface kong.unirest.HttpRequest
 
getRawPath() - Method in interface kong.unirest.HttpRequestSummary
 
GetRequest - Interface in kong.unirest
 
getSocketTimeout() - Method in class kong.unirest.Config
 
getSocketTimeout() - Method in interface kong.unirest.HttpRequest
 
getStatus() - Method in interface kong.unirest.HttpResponse
 
getStatus() - Method in interface kong.unirest.HttpResponseSummary
 
getStatus() - Method in interface kong.unirest.RawResponse
 
getStatusText() - Method in interface kong.unirest.HttpResponse
 
getStatusText() - Method in interface kong.unirest.HttpResponseSummary
 
getStatusText() - Method in interface kong.unirest.RawResponse
 
getSyncMonitor() - Method in class kong.unirest.apache.ApacheClient
 
getType() - Method in class kong.unirest.GenericType
 
getUrl() - Method in interface kong.unirest.HttpRequest
 
getUrl() - Method in interface kong.unirest.HttpRequestSummary
 
getUsername() - Method in class kong.unirest.Proxy
 
getValue() - Method in class kong.unirest.BodyPart
 
getValue() - Method in interface kong.unirest.Header
 
getValue() - Method in class kong.unirest.JsonPatchItem
 

H

hasContent() - Method in interface kong.unirest.RawResponse
 
hashCode() - Method in class kong.unirest.JsonPatchItem
 
HEAD - Static variable in class kong.unirest.HttpMethod
 
head(String) - Static method in class kong.unirest.Unirest
Start a HEAD HttpRequest which does not support a body from the primary config
head(String) - Method in class kong.unirest.UnirestInstance
Start a HEAD HttpRequest which does not support a body from the primary config
Header - Interface in kong.unirest
 
header(String, String) - Method in interface kong.unirest.HttpRequest
Add a http header, HTTP supports multiple of the same header.
HeaderNames - Class in kong.unirest
Constants enumerating the HTTP headers.
headerReplace(String, String) - Method in interface kong.unirest.HttpRequest
Replace a header value or add it if it doesn't exist
Headers - Class in kong.unirest
 
Headers() - Constructor for class kong.unirest.Headers
 
Headers(Collection<Headers.Entry>) - Constructor for class kong.unirest.Headers
 
headers(Map<String, String>) - Method in interface kong.unirest.HttpRequest
Add headers as a map
HOST - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.23
httpClient(HttpClient) - Method in class kong.unirest.Config
Set the HttpClient implementation to use for every synchronous request
httpClient(Client) - Method in class kong.unirest.Config
Set the HttpClient implementation to use for every synchronous request
httpClient(Function<Config, Client>) - Method in class kong.unirest.Config
Provide a builder for a client
HttpMethod - Class in kong.unirest
 
HttpRequest<R extends HttpRequest> - Interface in kong.unirest
The primary request builder used to create a request.
HttpRequestSummary - Interface in kong.unirest
A summary of a request about to be performed
HttpRequestWithBody - Interface in kong.unirest
 
HttpResponse<T> - Interface in kong.unirest
 
HttpResponseSummary - Interface in kong.unirest
A Summary of rhe response

I

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
 

J

JsonNode - Class in kong.unirest
 
JsonNode(String) - Constructor for class kong.unirest.JsonNode
 
JsonPatch - Class in kong.unirest
 
JsonPatch() - Constructor for class kong.unirest.JsonPatch
 
JsonPatch(String) - Constructor for class kong.unirest.JsonPatch
 
jsonPatch(String) - Static method in class kong.unirest.Unirest
Start a PATCH HttpRequest which supports a JSON Patch builder.
jsonPatch(String) - Method in class kong.unirest.UnirestInstance
Start a PATCH HttpRequest which supports a JSON Patch builder.
JsonPatchItem - Class in kong.unirest
 
JsonPatchItem(JsonPatchOperation, String, Object) - Constructor for class kong.unirest.JsonPatchItem
 
JsonPatchItem(JsonPatchOperation, String) - Constructor for class kong.unirest.JsonPatchItem
 
JsonPatchItem(JSONObject) - Constructor for class kong.unirest.JsonPatchItem
 
JsonPatchOperation - Enum in kong.unirest
 
JsonPatchRequest - Interface in kong.unirest
 
JsonResponse - Class in kong.unirest
 
JsonResponse(RawResponse) - Constructor for class kong.unirest.JsonResponse
 

K

kong.unirest - package kong.unirest
 
kong.unirest.apache - package kong.unirest.apache
 

L

LAST_MODIFIED - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29
LOCATION - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30
LOCK_TOKEN - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.5

M

map(Function<T, V>) - Method in interface kong.unirest.HttpResponse
Map the Response into another response with a different body
mapBody(Function<T, V>) - Method in interface kong.unirest.HttpResponse
Map the body into another type
mapError(Class<? extends E>) - Method in interface kong.unirest.HttpResponse
Map the body into a error class if the response was NOT a 200-series response or a mapping exception happened.
MAX_FORWARDS - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.31
MetricContext - Interface in kong.unirest
A metric context for the current request
mode(MultipartMode) - Method in interface kong.unirest.MultipartBody
Set the Apache Mode.
MonitoringFileBody - Class in kong.unirest.apache
 
MonitoringFileBody(String, File, ContentType, ProgressMonitor) - Constructor for class kong.unirest.apache.MonitoringFileBody
 
move(String, String) - Method in class kong.unirest.JsonPatch
 
move(String, String) - Method in interface kong.unirest.JsonPatchRequest
 
MULTIPART_FORM_DATA - Static variable in class kong.unirest.ContentType
 
MultipartBody - Interface in kong.unirest
Represents a multi-part body builder for a request.
multiPartContent() - Method in interface kong.unirest.HttpRequestWithBody
Forces the request to send as multipart even if all params are simple
MultipartMode - Enum in kong.unirest
 
multiParts() - Method in interface kong.unirest.Body
 

N

name() - Method in class kong.unirest.HttpMethod
 

O

ObjectMapper - Interface in kong.unirest
 
OPTIONS - Static variable in class kong.unirest.HttpMethod
 
options(String) - Static method in class kong.unirest.Unirest
Start a OPTIONS HttpRequest which does not support a body from the primary config
options(String) - Method in class kong.unirest.UnirestInstance
Start a OPTIONS HttpRequest which does not support a body from the primary config
OVERWRITE - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.6

P

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

Q

queryString(String, Object) - Method in interface kong.unirest.HttpRequest
add a query param to the url.
queryString(String, Collection<?>) - Method in interface kong.unirest.HttpRequest
Add multiple param with the same param name.
queryString(Map<String, Object>) - Method in interface kong.unirest.HttpRequest
Add query params as a map of name value pairs

R

RANGE - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.35
RawResponse - Interface in kong.unirest
 
RawResponseBase - Class in kong.unirest
 
RawResponseBase(Config) - Constructor for class kong.unirest.RawResponseBase
 
readValue(String, Class<T>) - Method in interface kong.unirest.ObjectMapper
 
readValue(String, GenericType<T>) - Method in interface kong.unirest.ObjectMapper
 
REFERER - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36
registerShutdownHook() - Method in class kong.unirest.apache.ApacheAsyncClient
 
registerShutdownHook() - Method in class kong.unirest.apache.ApacheClient
 
registerShutdownHook() - Method in interface kong.unirest.AsyncClient
Register the Async clients with shutdown hooks
registerShutdownHook() - Method in interface kong.unirest.Client
 
remove(String) - Method in class kong.unirest.JsonPatch
 
remove(String) - Method in interface kong.unirest.JsonPatchRequest
 
replace(String, String) - Method in class kong.unirest.Headers
Replace a header value.
replace(String, Object) - Method in class kong.unirest.JsonPatch
 
replace(String, Object) - Method in interface kong.unirest.JsonPatchRequest
 
request(HttpRequest, Function<RawResponse, HttpResponse<T>>, CompletableFuture<HttpResponse<T>>) - Method in class kong.unirest.apache.ApacheAsyncClient
 
request(HttpRequest, Function<RawResponse, HttpResponse<T>>) - Method in class kong.unirest.apache.ApacheClient
 
request(HttpRequest, Function<RawResponse, HttpResponse<T>>, CompletableFuture<HttpResponse<T>>) - Method in interface kong.unirest.AsyncClient
Make a Async request
request(HttpRequest, Function<RawResponse, HttpResponse<T>>) - Method in interface kong.unirest.Client
Make a request
request(String, String) - Static method in class kong.unirest.Unirest
 
request(String, String) - Method in class kong.unirest.UnirestInstance
 
RequestBodyEntity - Interface in kong.unirest
 
requestCompression(boolean) - Method in class kong.unirest.Config
Turn on or off requesting all content as compressed.
reset() - Method in class kong.unirest.Config
Shutdown the current config and re-init.
responseEncoding(String) - Method in interface kong.unirest.HttpRequest
The encoding to expect the response to be for cases where the server fails to respond with the proper encoding
RETRY_AFTER - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.37
routeParam(String, String) - Method in interface kong.unirest.HttpRequest
add a route param that replaces the matching {name} For example routeParam("name", "fred") will replace {name} in https://localhost/users/{user} to https://localhost/users/fred
routeParam(Map<String, Object>) - Method in interface kong.unirest.HttpRequest
add a route param map that replaces the matching {name} For example routeParam(Map.of("name", "fred")) will replace {name} in https://localhost/users/{user} to https://localhost/users/fred
run() - Method in class kong.unirest.apache.AsyncIdleConnectionMonitorThread
 
run() - Method in class kong.unirest.apache.SyncIdleConnectionMonitorThread
 

S

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
 

T

TE - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.39
test(String, Object) - Method in class kong.unirest.JsonPatch
 
test(String, Object) - Method in interface kong.unirest.JsonPatchRequest
 
TEXT_HTML - Static variable in class kong.unirest.ContentType
 
TEXT_PLAIN - Static variable in class kong.unirest.ContentType
 
TEXT_XML - Static variable in class kong.unirest.ContentType
 
thenConsume(Consumer<RawResponse>) - Method in interface kong.unirest.HttpRequest
Execute the request asynchronously and pass the raw response to a consumer.
thenConsumeAsync(Consumer<RawResponse>) - Method in interface kong.unirest.HttpRequest
Execute the request and pass the raw response to a consumer.
TIMEOUT - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.8
toString() - Method in class kong.unirest.ContentType
 
toString() - Method in class kong.unirest.HttpMethod
 
toString() - Method in class kong.unirest.JsonNode
 
toString() - Method in class kong.unirest.JsonPatch
 
toString() - Method in class kong.unirest.JsonPatchItem
 
toSummary() - Method in interface kong.unirest.HttpRequest
 
toSummary() - Method in interface kong.unirest.RawResponse
 
toSummary() - Method in class kong.unirest.RawResponseBase
 
TRACE - Static variable in class kong.unirest.HttpMethod
 
TRAILER - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.40
TRANSFER_ENCODING - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.41
tryStart() - Method in class kong.unirest.apache.AsyncIdleConnectionMonitorThread
 
type - Variable in class kong.unirest.GenericType
 

U

UniMetric - Interface in kong.unirest
A UniMetric is a factory for producing a MetricContext this will be called just before any Http Request
uniPart() - Method in interface kong.unirest.Body
 
Unirest - Class in kong.unirest
 
Unirest() - Constructor for class kong.unirest.Unirest
 
UnirestConfigException - Exception in kong.unirest
 
UnirestConfigException(Exception) - Constructor for exception kong.unirest.UnirestConfigException
 
UnirestConfigException(String) - Constructor for exception kong.unirest.UnirestConfigException
 
UnirestException - Exception in kong.unirest
 
UnirestException(Exception) - Constructor for exception kong.unirest.UnirestException
 
UnirestException(String) - Constructor for exception kong.unirest.UnirestException
 
UnirestException(Throwable) - Constructor for exception kong.unirest.UnirestException
 
UnirestException(String, Throwable) - Constructor for exception kong.unirest.UnirestException
 
UnirestException(Collection<Exception>) - Constructor for exception kong.unirest.UnirestException
 
UnirestInstance - Class in kong.unirest
A Instance of the unirest runtime, you can have many of these but it is the config and its clients where all the action happens.
UnirestInstance(Config) - Constructor for class kong.unirest.UnirestInstance
Create a new UnirestInstance with a config
UnirestParsingException - Exception in kong.unirest
 
UnirestParsingException(String, Exception) - Constructor for exception kong.unirest.UnirestParsingException
 
UPGRADE - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.42
uploadMonitor(ProgressMonitor) - Method in interface kong.unirest.MultipartBody
Set a file Progress upload monitor suitable for drawing progress bars and whatnot.
USER_AGENT - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43
useSystemProperties(boolean) - Method in class kong.unirest.Config
Tell the HttpClients to use the system properties for things like proxies
useSystemProperties() - Method in class kong.unirest.Config
 

V

valueOf(String) - Static method in class kong.unirest.HttpMethod
 
valueOf(String) - Static method in enum kong.unirest.JsonPatchOperation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum kong.unirest.MultipartMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum kong.unirest.JsonPatchOperation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum kong.unirest.MultipartMode
Returns an array containing the constants of this enum type, in the order they are declared.
VARY - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.44
verifySsl(boolean) - Method in class kong.unirest.Config
Toggle verifying SSL/TLS certificates.
VIA - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.45

W

WARNING - Static variable in class kong.unirest.HeaderNames
RFC 2616 (HTTP/1.1) Section 14.46
WILDCARD - Static variable in class kong.unirest.ContentType
 
withCharset(Charset) - Method in class kong.unirest.ContentType
 
withObjectMapper(ObjectMapper) - Method in interface kong.unirest.HttpRequest
Pass a ObjectMapper for the request.
writeTo(OutputStream) - Method in class kong.unirest.apache.MonitoringFileBody
 
writeValue(Object) - Method in interface kong.unirest.ObjectMapper
 
WWW_AUTHENTICATE - Static variable in class kong.unirest.HeaderNames
RFC 1945 (HTTP/1.0) Section 10.16, RFC 2616 (HTTP/1.1) Section 14.47
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2019. All rights reserved.