Package kong.unirest.core
-
Interface Summary Interface Description Assert a set of assertable things about the requests that the mock client handled.Body BodyMatcher Body Matchers can be used to evaluate a entity body.Cache Cache interface for response cachingCache.Key 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 A functional interface to generate a cache keyCallback<T> Client The client that does the work.Expectation A expectation for a particular method/pathExpectedResponse The expected response of a assertion.GetRequest Header HttpRequest<R extends HttpRequest> The primary request builder used to create a request.HttpRequestSummary A summary of a request about to be performedHttpRequestWithBody A request Builder for POST and PUT operations with a body.HttpResponse<T> HttpResponseSummary A Summary of rhe responseInterceptor Each configuration of Unirest has an interceptor.JsonPatchRequest MetricContext A metric context for the current requestMultipartBody Represents a multi-part body builder for a request.ObjectMapper Interface for object mappers that can transform response bodies to other structures.ProgressMonitor A ProgressMonitor is a functional interface which can be passed to unirest for the purposes of monitoring uploads and downloads.RawResponse The Raw Response represents the response before any mapping or consumption of the content.RequestBodyEntity ResponseBuilder RetryStrategy A Strategy for performing retries.UniMetric A UniMetric is a factory for producing a MetricContext this will be called just before any Http RequestWebSocketRequest -
Class Summary Class Description BaseRequest<R extends HttpRequest> BaseResponse<T> BasicResponse<T> BodyPart<T> ByteArrayPart ByteResponse Cache.Builder CacheManager CacheManager.CacheMap CacheManager.HashKey CallbackFuture CompoundInterceptor Config ContentType Cookie Represents a cookie parsed from the set-cookie header per https://tools.ietf.org/html/rfc6265 note that the RFC is awful.Cookie.Pair Cookies Represents a collection of cookies with some helper methods for parsing and getting cookieCookieSpecs Standard cookie specifications supported by Unirest.DefaultInterceptor Empty EqualsBodyMatcher ExpectedResponseRecord FailedResponse<T> A failed response you COULD return if you want to live in a house of lies.FieldMatcher Matches simple form fieldsFilePart FileResponse GenericType<T> Parts of this file were taken from Jackson/core TypeReference under the Apache License: Apache (Software) License, version 2.0 ("the License").HeaderNames Constants enumerating the HTTP headers.Headers Headers.Entry HttpMethod HttpRequestBody HttpRequestJsonPatch HttpRequestMultiPart HttpRequestNoBody HttpRequestUniBody HttpStatus InputStreamBody InputStreamPart Invocation JsonNode JsonPatch JsonPatchItem JsonResponse Matchers Static set of MatchersMatchStatus Indicates a successful match and a description of the failure (if any)MimeTypes A non-exclusive list of the most popular mime content typesMockClient A Mock client for unirest to make requests against This implements both sync and async clientsMockConfig A Mock Config that will not actually start up any real clients.MockListener A Mock WebSocket.Lister that records messages and has custom asserts.MockRawResponse MockResponse<T> A Mock Response that can be used in testing.MockWebSocket A Mock of a websocket that sends messages directly to a single listener on the other sideMonitoringInputStream NoopMetric ObjectResponse<T> PagedList<T> ParamPart Path Proxy QueryParams QueryParams.NameValuePair RawResponseBase RequestSummary ResponseSummary RetryStrategy.Standard 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.Routes SocketSet<S extends java.net.http.WebSocket,L extends java.net.http.WebSocket.Listener> A socket set represents a websocket and the listener for a target.StringResponse SummaryFormatter TestBody Times Times.AtLeast Times.AtMost Times.EvaluationResult Times.Exactly UnibodyString UniByteArrayBody Unirest UnirestInstance 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.Util WebSocketRequestImpl WebSocketResponse Just a silly little class that holds on to the socket and listener -
Enum Summary Enum Description Cookie.SameSite JsonPatchOperation MultipartMode -
Exception Summary Exception Description UnirestConfigException UnirestException UnirestParsingException UnrecoverableException An exception which prevents Unirest from attempting to recover the body from a failed response / parsing error -
Error Summary Error Description UnirestAssertion Thrown to indicate that an assertion has failed.