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
accumulate(String, Object) - Method in class kong.unirest.json.JSONObject
Add a element to a JSONArray in a element.
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) - Constructor for class kong.unirest.apache.ApacheAsyncClient
 
ApacheAsyncClient(HttpAsyncClient, Config, PoolingNHttpClientConnectionManager, AsyncIdleConnectionMonitorThread) - Constructor for class kong.unirest.apache.ApacheAsyncClient
Deprecated.
ApacheAsyncClient.Builder - Class in kong.unirest.apache
 
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
Deprecated.
ApacheClient(HttpClient, Config) - Constructor for class kong.unirest.apache.ApacheClient
 
ApacheClient.Builder - Class in kong.unirest.apache
 
append(String, Object) - Method in class kong.unirest.json.JSONObject
appends to an existing array
append(String) - Method in class kong.unirest.json.JSONPointer.Builder
 
append(int) - Method in class kong.unirest.json.JSONPointer.Builder
 
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
 
apply(Config) - Method in class kong.unirest.apache.ApacheAsyncClient.Builder
 
apply(Config) - Method in class kong.unirest.apache.ApacheClient.Builder
 
asBytes() - Method in interface kong.unirest.HttpRequest
Executes the request and returns the response with the body mapped into a byte[]
asBytesAsync() - Method in interface kong.unirest.HttpRequest
Executes the request asynchronously and returns the response with the body mapped into a byte[]
asBytesAsync(Callback<byte[]>) - Method in interface kong.unirest.HttpRequest
Executes the request asynchronously and returns the response with the body mapped into a byte[]
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
 
build() - Method in class kong.unirest.json.JSONPointer.Builder
 
builder(HttpAsyncClient) - Static method in class kong.unirest.apache.ApacheAsyncClient
 
Builder(HttpAsyncClient) - Constructor for class kong.unirest.apache.ApacheAsyncClient.Builder
 
builder(HttpClient) - Static method in class kong.unirest.apache.ApacheClient
 
Builder(HttpClient) - Constructor for class kong.unirest.apache.ApacheClient.Builder
 
builder() - Static method in class kong.unirest.json.JSONPointer
 
ByteArrayPart - Class in kong.unirest
 
ByteResponse - Class in kong.unirest
 
ByteResponse(RawResponse) - Constructor for class kong.unirest.ByteResponse
 

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
 
compile(String) - Static method in class kong.unirest.json.JSONPointer
 
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
connectionTTL(long, TimeUnit) - Method in class kong.unirest.Config
Total time to live (TTL) defines maximum life span of persistent connections regardless of their expiration setting.
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
doubleToString(double) - Static method in class kong.unirest.json.JSONObject
convert a primitive number to a string if the double can be converted to a whole number the decimal will be dropped

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.json.JSONArray
 
equals(Object) - Method in class kong.unirest.json.JSONObject
 
equals(Object) - Method in class kong.unirest.JsonPatchItem
 
errorHandler(Consumer<HttpResponse<?>>) - Method in class kong.unirest.Config
Sets a global error handler If the response was NOT a 200-series response or a mapping exception happened.
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
Parts of this file were taken from Jackson/core TypeReference under the Apache License: Apache (Software) License, version 2.0 ("the License").
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(int) - Method in class kong.unirest.json.JSONArray
get the element at the index
get(String) - Method in class kong.unirest.json.JSONObject
get and element by key as its native object
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.
getBigDecimal(int) - Method in class kong.unirest.json.JSONArray
get a BigDecimal at a specified index
getBigDecimal(String) - Method in class kong.unirest.json.JSONObject
get an element property as a BigDecimal
getBigInteger(int) - Method in class kong.unirest.json.JSONArray
get a BigInteger at a specified index
getBigInteger(String) - Method in class kong.unirest.json.JSONObject
get an element property as a BigInteger
getBodies() - Method in class kong.unirest.PagedList
 
getBody() - Method in class kong.unirest.BasicResponse
 
getBody() - Method in class kong.unirest.ByteResponse
 
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
 
getBoolean(int) - Method in class kong.unirest.json.JSONArray
get a boolean at a specified index
getBoolean(String) - Method in class kong.unirest.json.JSONObject
gets a boolean value at a particular key
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
 
getDouble(int) - Method in class kong.unirest.json.JSONArray
get a Double at a specified index
getDouble(String) - Method in class kong.unirest.json.JSONObject
get the value as a double
getEnabledCookieManagement() - Method in class kong.unirest.Config
 
getEncoding() - Method in interface kong.unirest.RawResponse
 
getEnum(Class<T>, int) - Method in class kong.unirest.json.JSONArray
get a enum value based on name from a specific index
getEnum(Class<T>, String) - Method in class kong.unirest.json.JSONObject
get element as a enum value
getErrorHandler() - Method in class kong.unirest.Config
 
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
getFloat(int) - Method in class kong.unirest.json.JSONArray
get a Float at a specified index
getFloat(String) - Method in class kong.unirest.json.JSONObject
get the value as a float
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
 
getInt(int) - Method in class kong.unirest.json.JSONArray
get a int at a specified index
getInt(String) - Method in class kong.unirest.json.JSONObject
get an element property as a int
getInterceptors() - Method in class kong.unirest.Config
 
getJSONArray(int) - Method in class kong.unirest.json.JSONArray
get a JSONArray at a specified index
getJSONArray(String) - Method in class kong.unirest.json.JSONObject
get the element as a JSONArray
getJSONObject(int) - Method in class kong.unirest.json.JSONArray
get a JSONObject at a specified index
getJSONObject(String) - Method in class kong.unirest.json.JSONObject
get the element as a JSONObject
getKeystore() - Method in class kong.unirest.Config
 
getKeyStorePassword() - Method in class kong.unirest.Config
 
getLong(int) - Method in class kong.unirest.json.JSONArray
get a long at a specified index
getLong(String) - Method in class kong.unirest.json.JSONObject
get the value as a long
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
 
getNames(JSONObject) - Static method in class kong.unirest.json.JSONObject
get all of the keys of a JSONObject
getNames(Object) - Static method in class kong.unirest.json.JSONObject
get all of the keys of a JSONObject or a empty array if not an JSONObject
getNumber(int) - Method in class kong.unirest.json.JSONArray
get a Number at a specified index
getNumber(String) - Method in class kong.unirest.json.JSONObject
get an element property as a Number
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
 
getString(int) - Method in class kong.unirest.json.JSONArray
get a String at a specified index
getString(String) - Method in class kong.unirest.json.JSONObject
get a element property as a string
getSyncMonitor() - Method in class kong.unirest.apache.ApacheClient
 
getTTL() - Method in class kong.unirest.Config
 
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

has(String) - Method in class kong.unirest.json.JSONObject
 
hasContent() - Method in interface kong.unirest.RawResponse
 
hashCode() - Method in class kong.unirest.json.JSONArray
 
hashCode() - Method in class kong.unirest.json.JSONObject
 
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
Deprecated.
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
 
increment(String) - Method in class kong.unirest.json.JSONObject
increments a numeric value by 1, or creates it with a value of 1 if it does not exist.
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
 
isEmpty() - Method in class kong.unirest.json.JSONArray
returns if the array is empty
isEmpty() - Method in class kong.unirest.json.JSONObject
 
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
 
isNull(int) - Method in class kong.unirest.json.JSONArray
Indicates if the index does not exist or it's contents are null
isNull(String) - Method in class kong.unirest.json.JSONObject
indicate if the key does not exist or its value is null
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
 
iterator() - Method in class kong.unirest.json.JSONArray
 

J

join(String) - Method in class kong.unirest.json.JSONArray
return the array as a string delimited by a specific token
JSONArray - Class in kong.unirest.json
https://json.org/ https://tools.ietf.org/html/rfc7159#section-4 Represents a JSON Array
JSONArray() - Constructor for class kong.unirest.json.JSONArray
construct a empty JSONArray
JSONArray(String) - Constructor for class kong.unirest.json.JSONArray
construct a JSONArray from a String
JSONArray(Collection<?>) - Constructor for class kong.unirest.json.JSONArray
Construct a JSONArray from a collection.
JSONArray(Object) - Constructor for class kong.unirest.json.JSONArray
Construct a JSONArray from a typed array (int[]).
JSONElement - Class in kong.unirest.json
 
JSONElement(JsonElement) - Constructor for class kong.unirest.json.JSONElement
 
JSONException - Exception in kong.unirest.json
 
JSONException(String) - Constructor for exception kong.unirest.json.JSONException
 
JSONException(String, Object...) - Constructor for exception kong.unirest.json.JSONException
 
JsonNode - Class in kong.unirest
 
JsonNode(String) - Constructor for class kong.unirest.JsonNode
 
JSONObject - Class in kong.unirest.json
https://json.org/ https://tools.ietf.org/html/rfc7159#section-4 represents a JSON Object
JSONObject(String) - Constructor for class kong.unirest.json.JSONObject
https://tools.ietf.org/html/rfc7159#section-4
JSONObject(Map<String, Object>) - Constructor for class kong.unirest.json.JSONObject
construct using a map
JSONObject() - Constructor for class kong.unirest.json.JSONObject
an empty JSON object
JsonObjectMapper - Class in kong.unirest
 
JsonObjectMapper() - Constructor for class kong.unirest.JsonObjectMapper
 
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
 
JSONPointer - Class in kong.unirest.json
A Json Pointer query object following https://tools.ietf.org/html/rfc6901
JSONPointer(String) - Constructor for class kong.unirest.json.JSONPointer
a JSONPointer constructor
JSONPointer.Builder - Class in kong.unirest.json
 
JSONPointerException - Exception in kong.unirest.json
 
JSONPointerException(String, Object...) - Constructor for exception kong.unirest.json.JSONPointerException
 
JsonResponse - Class in kong.unirest
 
JsonResponse(RawResponse) - Constructor for class kong.unirest.JsonResponse
 
JSONString - Interface in kong.unirest.json
 

K

keys() - Method in class kong.unirest.json.JSONObject
get a iterator for the keyset
keySet() - Method in class kong.unirest.json.JSONObject
get all the keys as a set
kong.unirest - package kong.unirest
 
kong.unirest.apache - package kong.unirest.apache
 
kong.unirest.json - package kong.unirest.json
 

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
length() - Method in class kong.unirest.json.JSONArray
 
length() - Method in class kong.unirest.json.JSONObject
 
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.
MAPPER - Static variable in class kong.unirest.json.JSONElement
 
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
 
names() - Method in class kong.unirest.json.JSONObject
get the key names as a JSONArray
NULL - Static variable in class kong.unirest.json.JSONObject
 
numberToString(Number) - Static method in class kong.unirest.json.JSONObject
Convert a number to a string

O

ObjectMapper - Interface in kong.unirest
 
opt(int) - Method in class kong.unirest.json.JSONArray
get the element at the index
opt(String) - Method in class kong.unirest.json.JSONObject
optionally return the object or null if it doesn't exist
optBigDecimal(int, BigDecimal) - Method in class kong.unirest.json.JSONArray
get a BigDecimal at a specified index, or a default value if the value does not exist or is not a BigDecimal
optBigDecimal(String, BigDecimal) - Method in class kong.unirest.json.JSONObject
get the value as a BigDecimal or default value
optBigInteger(int, BigInteger) - Method in class kong.unirest.json.JSONArray
get a BigInteger at a specified index, or a default value if the value does not exist or is not a BigInteger
optBigInteger(String, BigInteger) - Method in class kong.unirest.json.JSONObject
get the value as a BigInteger or default value
optBoolean(int) - Method in class kong.unirest.json.JSONArray
get a boolean at a specified index
optBoolean(int, boolean) - Method in class kong.unirest.json.JSONArray
get a boolean at a specified index
optBoolean(String) - Method in class kong.unirest.json.JSONObject
gets a boolean value at a particular key or false as default
optBoolean(String, boolean) - Method in class kong.unirest.json.JSONObject
gets a boolean value at a particular key or a default value
optDouble(int) - Method in class kong.unirest.json.JSONArray
get a Double at a specified index
optDouble(int, double) - Method in class kong.unirest.json.JSONArray
get a Double at a specified index, or a default value if the value does not exist or is not a double
optDouble(String) - Method in class kong.unirest.json.JSONObject
the value as double or NaN
optDouble(String, double) - Method in class kong.unirest.json.JSONObject
get the value as a double or default value
optEnum(Class<T>, int) - Method in class kong.unirest.json.JSONArray
 
optEnum(Class<T>, int, T) - Method in class kong.unirest.json.JSONArray
 
optEnum(Class<T>, String) - Method in class kong.unirest.json.JSONObject
get element as a enum value or null if the value cannot be mapped
optEnum(Class<T>, String, T) - Method in class kong.unirest.json.JSONObject
get element as a enum value or a default value if the value cannot be mapped
optFloat(int) - Method in class kong.unirest.json.JSONArray
get a Float at a specified index, or a NaN value if the value does not exist or is not a Float
optFloat(int, float) - Method in class kong.unirest.json.JSONArray
get a Float at a specified index, or a default value if the value does not exist or is not a Float
optFloat(String) - Method in class kong.unirest.json.JSONObject
the value as double or NaN
optFloat(String, float) - Method in class kong.unirest.json.JSONObject
get the value as a float or default value
optInt(int) - Method in class kong.unirest.json.JSONArray
get a int at a specified index, or 0 if the value does not exist or is not a int
optInt(int, int) - Method in class kong.unirest.json.JSONArray
get a int at a specified index, or a default value if the value does not exist or is not a int
optInt(String) - Method in class kong.unirest.json.JSONObject
the value as int or NaN
optInt(String, int) - Method in class kong.unirest.json.JSONObject
get the value as a int or default value
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
optJSONArray(int) - Method in class kong.unirest.json.JSONArray
get a String at a specified index, or null if the value does not exist or is not a JSONArray
optJSONArray(String) - Method in class kong.unirest.json.JSONObject
optionally get the element as a JSONArray
optJSONObject(int) - Method in class kong.unirest.json.JSONArray
get a JSONObject at a specified index or null if it does not exist or is not a valid JSONObject
optJSONObject(String) - Method in class kong.unirest.json.JSONObject
get the element as a JSONObject
optLong(int) - Method in class kong.unirest.json.JSONArray
get a long at a specified index, or 0 if the value does not exist or is not a long
optLong(int, long) - Method in class kong.unirest.json.JSONArray
get a long at a specified index, or a default value if the value does not exist or is not a long
optLong(String) - Method in class kong.unirest.json.JSONObject
the value as long or NaN
optLong(String, long) - Method in class kong.unirest.json.JSONObject
get the value as a long or default value
optNumber(int) - Method in class kong.unirest.json.JSONArray
get a Number at a specified index
optNumber(int, Number) - Method in class kong.unirest.json.JSONArray
get a Number at a specified index
optNumber(String) - Method in class kong.unirest.json.JSONObject
the value as int or 0
optNumber(String, Number) - Method in class kong.unirest.json.JSONObject
get the value as a Number or default value
optQuery(String) - Method in class kong.unirest.json.JSONElement
 
optQuery(JSONPointer) - Method in class kong.unirest.json.JSONElement
 
optString(int) - Method in class kong.unirest.json.JSONArray
get a String at a specified index, or an empty string if the value does not exist or is not a String
optString(int, String) - Method in class kong.unirest.json.JSONArray
get a String at a specified index, or a default value if the value does not exist or is not a String
optString(String) - Method in class kong.unirest.json.JSONObject
get a element property as a string
optString(String, String) - Method in class kong.unirest.json.JSONObject
get a element property as a string
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(JSONObject) - Method in class kong.unirest.json.JSONArray
append a JSONObject to the end of the array
put(JSONArray) - Method in class kong.unirest.json.JSONArray
append a JSONArray as an element to the end of the array
put(double) - Method in class kong.unirest.json.JSONArray
add a double to the array
put(int) - Method in class kong.unirest.json.JSONArray
add a int to the array
put(long) - Method in class kong.unirest.json.JSONArray
add a long to the array
put(float) - Method in class kong.unirest.json.JSONArray
add a float to the array
put(Number) - Method in class kong.unirest.json.JSONArray
add a Number to the array
put(boolean) - Method in class kong.unirest.json.JSONArray
add a Boolean to the array
put(String) - Method in class kong.unirest.json.JSONArray
add a String to the array
put(Map) - Method in class kong.unirest.json.JSONArray
add a JSONObject to the array as a map
put(Collection) - Method in class kong.unirest.json.JSONArray
add a JSONArray to the array
put(T) - Method in class kong.unirest.json.JSONArray
put a enum which will be put as the string name
put(int, long) - Method in class kong.unirest.json.JSONArray
put a long at a specific instance if the index is beyond the currently length the array will be buffered with nulls
put(int, double) - Method in class kong.unirest.json.JSONArray
put a double at a specific instance if the index is beyond the currently length the array will be buffered with nulls
put(int, boolean) - Method in class kong.unirest.json.JSONArray
put a boolean at a specific index
put(int, Object) - Method in class kong.unirest.json.JSONArray
put a object at a specific instance if the index is beyond the currently length the array will be buffered with nulls
put(int, float) - Method in class kong.unirest.json.JSONArray
put a float at a specific instance if the index is beyond the currently length the array will be buffered with nulls
put(int, int) - Method in class kong.unirest.json.JSONArray
put a int at a specific instance if the index is beyond the currently length the array will be buffered with nulls
put(int, Number) - Method in class kong.unirest.json.JSONArray
put a Number at a specific instance if the index is beyond the currently length the array will be buffered with nulls
put(int, String) - Method in class kong.unirest.json.JSONArray
put a String at a specific index if the index is beyond the currently length the array will be buffered with nulls
put(int, Map) - Method in class kong.unirest.json.JSONArray
put a JSONObject as a map at a specific index if the index is beyond the currently length the array will be buffered with nulls
put(int, Collection) - Method in class kong.unirest.json.JSONArray
put a JSONArray at a specific index as a Collection if the index is beyond the currently length the array will be buffered with nulls
put(int, T) - Method in class kong.unirest.json.JSONArray
put a Enum name at a specific index as a string if the index is beyond the currently length the array will be buffered with nulls
put(Object) - Method in class kong.unirest.json.JSONArray
add a Object to the array Must be a valid JSON type or else it will be turned into a string
put(String, JSONObject) - Method in class kong.unirest.json.JSONObject
put a JSONObject at a particular key
put(String, JSONArray) - Method in class kong.unirest.json.JSONObject
put a JSONArray at a particular key
put(String, boolean) - Method in class kong.unirest.json.JSONObject
put a boolean at a particular key
put(String, Number) - Method in class kong.unirest.json.JSONObject
put a Number at a particular key
put(String, double) - Method in class kong.unirest.json.JSONObject
put a double at a particular key
put(String, float) - Method in class kong.unirest.json.JSONObject
put a float at a particular key
put(String, long) - Method in class kong.unirest.json.JSONObject
put a long at a particular key
put(String, int) - Method in class kong.unirest.json.JSONObject
put a int at a particular key
put(String, String) - Method in class kong.unirest.json.JSONObject
put a String at a particular key
put(String, Collection) - Method in class kong.unirest.json.JSONObject
put a Collection as a JSONArray at a particular key
put(String, Map) - Method in class kong.unirest.json.JSONObject
put a Collection as a JSONArray at a particular key
put(String, T) - Method in class kong.unirest.json.JSONObject
put a enum at a particular key.
put(String, Object) - Method in class kong.unirest.json.JSONObject
put an object to a key.
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
putOnce(String, Object) - Method in class kong.unirest.json.JSONObject
put a value to a key only if it does not exist
putOpt(String, Object) - Method in class kong.unirest.json.JSONObject
optional put a value at a key as long as both they key and value are not null otherwise it does nothing

Q

query(String) - Method in class kong.unirest.json.JSONElement
query the object graph using JSONPointer https://tools.ietf.org/html/rfc6901
query(JSONPointer) - Method in class kong.unirest.json.JSONElement
query the object graph using JSONPointer https://tools.ietf.org/html/rfc6901
queryFrom(Object) - Method in class kong.unirest.json.JSONPointer
 
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
quote(String) - Static method in class kong.unirest.json.JSONObject
quite escape a string
quote(String, Writer) - Static method in class kong.unirest.json.JSONObject
quite escape a string

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 class kong.unirest.JsonObjectMapper
 
readValue(String, GenericType<T>) - Method in class kong.unirest.JsonObjectMapper
 
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(int) - Method in class kong.unirest.json.JSONArray
Removes the element at the specified position in this array.
remove(String) - Method in class kong.unirest.json.JSONObject
remove a element by key name
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.
RequestConfigFactory - Interface in kong.unirest.apache
 
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.
similar(Object) - Method in class kong.unirest.json.JSONArray
indicates if a JSONArray has the same elements as another JSONArray
similar(Object) - Method in class kong.unirest.json.JSONObject
indicates if a JSONObject has the same elements as another JSONObject
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
 
stringToValue(String) - Static method in class kong.unirest.json.JSONObject
convert a primitive JSON type in a string (bool, number, null) to its primitive type all decimal types will become doubles
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 and pass the raw response to a consumer.
thenConsumeAsync(Consumer<RawResponse>) - Method in interface kong.unirest.HttpRequest
Execute the request asynchronously and pass the raw response to a consumer.
TIMEOUT - Static variable in class kong.unirest.HeaderNames
RFC 2518 (WevDAV) Section 9.8
toJSONArray(JSONArray) - Method in class kong.unirest.json.JSONObject
creates an array of the values for they keys you provide
toJSONObject(JSONArray) - Method in class kong.unirest.json.JSONArray
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
toJSONString() - Method in interface kong.unirest.json.JSONString
 
toList() - Method in class kong.unirest.json.JSONArray
Converts the JSONArray to a List
toMap() - Method in class kong.unirest.json.JSONObject
converts this object to a map
toPrettyString() - Method in class kong.unirest.JsonNode
 
toString() - Method in class kong.unirest.ContentType
 
toString() - Method in class kong.unirest.HttpMethod
 
toString() - Method in class kong.unirest.json.JSONArray
returns the String representation of the JSONArray
toString(int) - Method in class kong.unirest.json.JSONArray
returns the String representation of the JSONArray
toString() - Method in class kong.unirest.json.JSONObject
 
toString(int) - Method in class kong.unirest.json.JSONObject
render the object as a JSON String
toString() - Method in class kong.unirest.json.JSONPointer
 
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
 
toURIFragment() - Method in class kong.unirest.json.JSONPointer
 
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.
valueToString(Object) - Static method in class kong.unirest.json.JSONObject
Converts an object to a JSON String
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.
withRequestConfig(RequestConfigFactory) - Method in class kong.unirest.apache.ApacheAsyncClient.Builder
 
withRequestConfig(RequestConfigFactory) - Method in class kong.unirest.apache.ApacheClient.Builder
 
wrap(Object) - Static method in class kong.unirest.json.JSONObject
Convert an object to a object that can be added to a JSONElement If the object is null return the NULL object If the object is primitive return the original object If the object is a map convert it to a JSONObject If the object is a Collection or array return a JSONArray If the object is anything else return a empty JSON Object
write(Writer) - Method in class kong.unirest.json.JSONElement
Write the JSON to a Writer
write(Writer, int, int) - Method in class kong.unirest.json.JSONElement
Write the JSON to a Writer with a pretty format due to limitations in GSON the index and indent are currently ignored
writeTo(OutputStream) - Method in class kong.unirest.apache.MonitoringFileBody
 
writeValue(Object) - Method in class kong.unirest.JsonObjectMapper
 
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.