All Classes and Interfaces
Class
Description
a set of assertable things about the requests that the mock client handled.
Body Matchers can be used to evaluate a entity body.
Strategy for appending the boundary across parts.
Cache interface for response caching
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.
A functional interface to generate a cache key
The client that does the work.
Represents a cookie parsed from the set-cookie header
per https://tools.ietf.org/html/rfc6265
note that the RFC is awful.
Represents a collection of cookies with some helper methods for parsing and getting cookie
Standard cookie specifications supported by Unirest.
The CoreFactory is a service locator for JsonEngines
Because core does not have a dependency on the various Json implementations
this class automatically finds and holds on to a implementation.
A expectation for a particular method/path
The expected response of a assertion.
A failed response you COULD return if you want to live in a house of lies.
Matches simple form fields
Parts of this file were taken from Jackson/core TypeReference under the Apache License:
Apache (Software) License, version 2.0 ("the License").
Constants enumerating the HTTP headers.
The primary request builder used to create a request.
A summary of a request about to be performed
A request Builder for POST and PUT operations with a body.
A Summary of rhe response
Each configuration of Unirest has an interceptor.
https://json.org/
https://tools.ietf.org/html/rfc7159#section-4
Represents a JSON Array
https://json.org/
https://tools.ietf.org/html/rfc7159#section-4
represents a JSON Object
A Json Pointer query object following
https://tools.ietf.org/html/rfc6901
Static set of Matchers
Indicates a successful match and a description of the failure (if any)
A metric context for the current request
A non-exclusive list of the most popular mime content types
A Mock client for unirest to make requests against
This implements both sync and async clients
A Mock Config that will not actually start up any real clients.
A Mock WebSocket.Lister that records messages and has custom asserts.
A Mock Response that can be used in testing.
A Mock of a websocket that sends messages directly to a single listener on the other side
Represents a multi-part body builder for a request.
A
BodyPublisher
implementing the multipart request type.Interface for object mappers that can transform response bodies to other structures.
Represents a part in a multipart request body.
Class for building a URI with query params
Simple class for encapsulating prefetch logic used across subscribers.
A ProgressMonitor is a functional interface which can be passed to unirest for the purposes of
monitoring uploads and downloads.
The Raw Response represents the response before any mapping or consumption of the content.
A Strategy for performing retries.
A standard implementation of the RetryStrategy which follows spec based Retry-After logic
- Will attempt a retry on any 301, 429, 503, or 529 response which is accompanied by a Retry-After header.
A socket set represents a websocket and the listener for a target.
A UniMetric is a factory for producing a MetricContext this will be called just before
any Http Request
Thrown to indicate that an assertion has failed.
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.
An exception which prevents Unirest from attempting to recover the body from a failed response / parsing error
A one-use atomic reference to an upstream subscription.
Just a silly little class that holds on to the socket and listener