- 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 header 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
- ACCEPTED - Static variable in class kong.unirest.HttpStatus
-
- 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
-
- addDefaultCookie(String, String) - Method in class kong.unirest.Config
-
Adds a default cookie to be added to all requests with this config
- addDefaultCookie(Cookie) - Method in class kong.unirest.Config
-
Adds a default cookie to be added to all requests with this config
- 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
-
- 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
- ALREADY_REPORTED - Static variable in class kong.unirest.HttpStatus
-
- 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) - 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
-
- apply(HttpRequest, Boolean, Class<?>) - Method in interface kong.unirest.Cache.KeyGenerator
-
A function to generate a cache key
- 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, CopyOption...) - Method in interface kong.unirest.HttpRequest
-
Executes the request and writes the contents into a file
- asFileAsync(String, CopyOption...) - Method in interface kong.unirest.HttpRequest
-
asynchronously executes the request and writes the contents into a file
- asFileAsync(String, Callback<File>, CopyOption...) - 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
- asString() - Method in interface kong.unirest.HttpRequestSummary
-
- 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
-
- asyncClient(AsyncClient) - Method in class kong.unirest.Config
-
Set the full async configuration including monitors.
- asyncClient(Function<Config, AsyncClient>) - Method in class kong.unirest.Config
-
Set the full async configuration including monitors.
- AsyncIdleConnectionMonitorThread - Class in kong.unirest.apache
-
- AsyncIdleConnectionMonitorThread(PoolingNHttpClientConnectionManager) - Constructor for class kong.unirest.apache.AsyncIdleConnectionMonitorThread
-
- AUTHORIZATION - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8
- automaticRetries(boolean) - Method in class kong.unirest.Config
-
Automaticly retry certain recoverable errors like socket timeouts.
- Cache - Interface in kong.unirest
-
Cache interface for response caching
- Cache.Builder - Class in kong.unirest
-
- Cache.Key - Interface in kong.unirest
-
Interface for the cache key which can be implemented by consumers
The key should implement equals and hashCode
It must must return the time the key was created.
- Cache.KeyGenerator - Interface in kong.unirest
-
A functional interface to generate a cache key
- CACHE_CONTROL - Static variable in class kong.unirest.HeaderNames
-
RFC 2616 (HTTP/1.1) Section 14.9
- cacheResponses(boolean) - Method in class kong.unirest.Config
-
Enable Response Caching with default options
- cacheResponses(Cache.Builder) - Method in class kong.unirest.Config
-
Enable Response Caching with custom options
- Callback<T> - Interface in kong.unirest
-
- cancelled() - Method in interface kong.unirest.Callback
-
- charset(Charset) - Method in interface kong.unirest.HttpRequestWithBody
-
Set the Charset encoding for the Content-Type.
- charset(Charset) - Method in interface kong.unirest.MultipartBody
-
Set the encoding of the request body
- charset(Charset) - Method in interface kong.unirest.RequestBodyEntity
-
Set the Charset encoding for the Content-Type.
- 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.
- CONFLICT - Static variable in class kong.unirest.HttpStatus
-
- 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.
- connectionTTL(Duration) - Method in class kong.unirest.Config
-
Sugar!
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
- Cookie - Class in kong.unirest
-
Represents a cookie parsed from the set-cookie header
per https://tools.ietf.org/html/rfc6265
note that the RFC is awful.
- Cookie(String, String) - Constructor for class kong.unirest.Cookie
-
- Cookie(String) - Constructor for class kong.unirest.Cookie
-
Construct a cookie from a set-cookie value
- cookie(Cookie) - Method in class kong.unirest.Headers
-
- cookie(Collection<Cookie>) - Method in class kong.unirest.Headers
-
- cookie(String, String) - Method in interface kong.unirest.HttpRequest
-
Add a simple cookie header
- cookie(Cookie) - Method in interface kong.unirest.HttpRequest
-
Add a simple cookie header
- cookie(Collection<Cookie>) - Method in interface kong.unirest.HttpRequest
-
Add a collection of cookie headers
- Cookie.SameSite - Enum in kong.unirest
-
- Cookies - Class in kong.unirest
-
Represents a collection of cookies with some helper methods for parsing and getting cookie
- Cookies() - Constructor for class kong.unirest.Cookies
-
- 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
-
- CREATED - Static variable in class kong.unirest.HttpStatus
-
- failed(UnirestException) - Method in interface kong.unirest.Callback
-
- FAILED_DEPENDENCY - Static variable in class kong.unirest.HttpStatus
-
- FailedResponse<T> - Class in kong.unirest
-
A failed response you COULD return if you want to live in a house of lies.
- FailedResponse(Exception) - Constructor for class kong.unirest.FailedResponse
-
Build a elaborate lie from a failure.
- field(String, Object) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets a field param on the body.
- field(String, Collection<?>) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets multiple field params on the body each with the same name.
- field(String, Object, String) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets a field param on the body with a specified content-type.
- field(String, File) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets a File on the body.
- field(String, File, String) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets a File on the body with a specified content-type.
- field(String, InputStream, String) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets a File on the body from a raw InputStream requires a file name.
- field(String, InputStream, ContentType, String) - Method in interface kong.unirest.HttpRequestWithBody
-
Sets a File on the body from a raw InputStream requires a specified content-type and file name.
- 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
-
Sets multiple field params on the body from a map of key/value pairs.
- FileResponse - Class in kong.unirest
-
- FileResponse(RawResponse, String, ProgressMonitor, CopyOption...) - Constructor for class kong.unirest.FileResponse
-
- followRedirects(boolean) - Method in class kong.unirest.Config
-
Allow the client to follow redirects.
- FORBIDDEN - Static variable in class kong.unirest.HttpStatus
-
- FOUND - Static variable in class kong.unirest.HttpStatus
-
- FROM - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22
- GATEWAY_TIMEOUT - Static variable in class kong.unirest.HttpStatus
-
- 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(Cache.Key, Supplier<HttpResponse<T>>) - Method in interface kong.unirest.Cache
-
Returns the cached HttpResponse for a key or uses the Supplier to fetch the response
- 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
-
- getAsync(Cache.Key, Supplier<CompletableFuture<HttpResponse<T>>>) - Method in interface kong.unirest.Cache
-
Returns the cached HttpResponse for a key or uses the Supplier to fetch the response
- 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.FailedResponse
-
- 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
-
get the current default charset
- 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
-
- getCookies() - Method in class kong.unirest.FailedResponse
-
- getCookies() - Method in interface kong.unirest.HttpResponse
-
return a cookie collection parse from the set-cookie header
- getCookieSpec() - Method in class kong.unirest.Config
-
- getCreationTime() - Method in interface kong.unirest.HttpRequest
-
- getDefaultBaseUrl() - 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
-
- getDomain() - Method in class kong.unirest.Cookie
-
- 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
-
- getExpiration() - Method in class kong.unirest.Cookie
-
Per Wikipedia:
The Expires attribute defines a specific date and time for when the browser should delete the cookie.
- getField(String) - Method in interface kong.unirest.Body
-
- 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 class kong.unirest.FailedResponse
-
- 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
-
- getHostnameVerifier() - Method in class kong.unirest.Config
-
- 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
- getInterceptor() - 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
-
- getMaxAge() - Method in class kong.unirest.Cookie
-
Per Wikipedia:
the Max-Age attribute can be used to set the cookie's expiration as an interval of seconds in the future,
relative to the time the browser received the cookie.
- 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 class kong.unirest.Cookie
-
- getName() - Method in interface kong.unirest.Header
-
- getNamed(String) - Method in class kong.unirest.Cookies
-
Get cookie by name
- 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 class kong.unirest.FailedResponse
-
- 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.Cookie
-
- 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
-
- getRawBody() - Method in class kong.unirest.BasicResponse
-
- getRawBody() - Method in class kong.unirest.ByteResponse
-
- getRawBody() - Method in class kong.unirest.FileResponse
-
- getRawBody() - Method in class kong.unirest.JsonResponse
-
- getRawBody() - Method in class kong.unirest.StringResponse
-
- getRawPath() - Method in interface kong.unirest.HttpRequestSummary
-
- GetRequest - Interface in kong.unirest
-
- getSameSite() - Method in class kong.unirest.Cookie
-
returns the SameSite attribute
- getSocketTimeout() - Method in class kong.unirest.Config
-
- getSocketTimeout() - Method in interface kong.unirest.HttpRequest
-
- getSslContext() - Method in class kong.unirest.Config
-
- getStatus() - Method in class kong.unirest.FailedResponse
-
Returns a 542, which is nothing and a lie.
- getStatus() - Method in interface kong.unirest.HttpResponse
-
- getStatus() - Method in interface kong.unirest.HttpResponseSummary
-
- getStatus() - Method in interface kong.unirest.RawResponse
-
- getStatusText() - Method in class kong.unirest.FailedResponse
-
a error message of the exception
- 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
- getTime() - Method in interface kong.unirest.Cache.Key
-
The time the key was created to be used by purging functions
- getTTL() - Method in class kong.unirest.Config
-
- getType() - Method in class kong.unirest.GenericType
-
- getTypeClass() - Method in class kong.unirest.GenericType
-
- getUniInterceptor() - Method in class kong.unirest.Config
-
- getUrl() - Method in interface kong.unirest.HttpRequest
-
- getUrl() - Method in interface kong.unirest.HttpRequestSummary
-
- getUrlDecodedValue() - Method in class kong.unirest.Cookie
-
- getUsername() - Method in class kong.unirest.Proxy
-
- getValue() - Method in class kong.unirest.BodyPart
-
- getValue() - Method in class kong.unirest.Cookie
-
- getValue() - Method in interface kong.unirest.Header
-
- getValue() - Method in class kong.unirest.JsonPatchItem
-
- GONE - Static variable in class kong.unirest.HttpStatus
-
- has(String) - Method in class kong.unirest.json.JSONObject
-
- hasContent() - Method in interface kong.unirest.RawResponse
-
- hashCode() - Method in interface kong.unirest.Cache.Key
-
As much as is reasonably practical, the hashCode method defined
by class Object
does return distinct integers for
distinct objects.
- hashCode() - Method in class kong.unirest.Headers
-
- 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
- hostnameVerifier(HostnameVerifier) - Method in class kong.unirest.Config
-
Set a custom HostnameVerifier
- 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
-
A request Builder for POST and PUT operations with a body.
- HttpResponse<T> - Interface in kong.unirest
-
- HttpResponseSummary - Interface in kong.unirest
-
A Summary of rhe response
- HttpStatus - Class in kong.unirest
-
- HttpStatus() - Constructor for class kong.unirest.HttpStatus
-
- 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 class kong.unirest.FailedResponse
-
- ifFailure(Class<? extends E>, Consumer<HttpResponse<E>>) - Method in class kong.unirest.FailedResponse
-
- 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 class kong.unirest.FailedResponse
-
- 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.
- IM_A_TEAPOT - Static variable in class kong.unirest.HttpStatus
-
- IM_USED - Static variable in class kong.unirest.HttpStatus
-
- 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
- INSUFFICIENT_STORAGE - Static variable in class kong.unirest.HttpStatus
-
- interceptor(Interceptor) - Method in class kong.unirest.Config
-
Add a Interceptor which will be called before and after the request;
- Interceptor - Interface in kong.unirest
-
Each configuration of Unirest has an interceptor.
- INTERNAL_SERVER_ERROR - Static variable in class kong.unirest.HttpStatus
-
- 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
-
- isEntityBody() - Method in class kong.unirest.TestBody
-
- 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
-
- isHttpOnly() - Method in class kong.unirest.Cookie
-
Per Wikipedia:
The HttpOnly attribute directs browsers not to expose cookies through channels other than HTTP (and HTTPS) requests.
- isMultiPart() - Method in interface kong.unirest.Body
-
- isMultiPart() - Method in class kong.unirest.TestBody
-
- 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
- ISO_8601 - Static variable in class kong.unirest.JsonObjectMapper
-
- 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.
- isSecure() - Method in class kong.unirest.Cookie
-
Per Wikipedia:
The Secure attribute is meant to keep cookie communication limited to encrypted transmission,
directing browsers to use cookies only via secure/encrypted connections.
- isSuccess() - Method in class kong.unirest.FailedResponse
-
is this a success? Obvs no!
- isSuccess() - Method in interface kong.unirest.HttpResponse
-
- isVerifySsl() - Method in class kong.unirest.Config
-
Will unirest verify the SSL?
You should only do this in non-prod environments.
- iterator() - Method in class kong.unirest.json.JSONArray
-
- ObjectMapper - Interface in kong.unirest
-
- OK - Static variable in class kong.unirest.HttpStatus
-
- onFail(Exception, HttpRequestSummary, Config) - Method in interface kong.unirest.Interceptor
-
Called in the case of a total failure.
- onRequest(HttpRequest<?>, Config) - Method in interface kong.unirest.Interceptor
-
Called just before a request.
- onResponse(HttpResponse<?>, HttpRequestSummary, Config) - Method in interface kong.unirest.Interceptor
-
Called just after the request.
- 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
- PagedList<T> - Class in kong.unirest
-
- PagedList() - Constructor for class kong.unirest.PagedList
-
- ParamPart - Class in kong.unirest
-
- parse(String) - Static method in enum kong.unirest.Cookie.SameSite
-
- PARTIAL_CONTENT - Static variable in class kong.unirest.HttpStatus
-
- 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
- PAYLOAD_TOO_LARGE - Static variable in class kong.unirest.HttpStatus
-
- PAYMENT_REQUIRED - Static variable in class kong.unirest.HttpStatus
-
- PERMANENT_REDIRECT - Static variable in class kong.unirest.HttpStatus
-
- 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
- PRECONDITION_FAILED - Static variable in class kong.unirest.HttpStatus
-
- PRECONDITION_REQUIRED - Static variable in class kong.unirest.HttpStatus
-
- 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 and downloads.
- 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_AUTHENTICATION_REQUIRED - Static variable in class kong.unirest.HttpStatus
-
- 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
- SEE_OTHER - Static variable in class kong.unirest.HttpStatus
-
- SERVER - Static variable in class kong.unirest.HeaderNames
-
RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38
- SERVICE_UNAVAILABLE - Static variable in class kong.unirest.HttpStatus
-
- 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.
- setDomain(String) - Method in class kong.unirest.Cookie
-
- setHttpOnly(boolean) - Method in class kong.unirest.Cookie
-
- setObjectMapper(ObjectMapper) - Method in class kong.unirest.Config
-
Set the ObjectMapper implementation to use for Response to Object binding
- setPath(String) - Method in class kong.unirest.Cookie
-
- 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.
- sslContext(SSLContext) - Method in class kong.unirest.Config
-
Set a custom SSLContext.
- 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