Uses of Interface
edu.iu.client.HttpResponseHandler
Packages that use HttpResponseHandler
Package
Description
Functional programming adapters for the
Jakarta JSON
Processing and Java
HTTP Client modules.
-
Uses of HttpResponseHandler in edu.iu.client
Fields in edu.iu.client declared as HttpResponseHandlerModifier and TypeFieldDescriptionstatic final HttpResponseHandler
<?> IuHttp.NO_CONTENT
Validates a 204 NO CONTENT response and returns null.static final HttpResponseHandler
<JsonValue> IuHttp.READ_JSON
Validates 200 OK then parses the response as a JSON object.static final HttpResponseHandler
<JsonObject> IuHttp.READ_JSON_OBJECT
Validates 200 OK then parses the response as a JSON object.Methods in edu.iu.client that return HttpResponseHandlerModifier and TypeMethodDescriptionstatic <T> HttpResponseHandler
<T> IuHttp.validate
(Function<InputStream, T> bodyDeserializer, HttpResponseValidator... responseValidators) Creates an HTTP response handler.Methods in edu.iu.client with parameters of type HttpResponseHandlerModifier and TypeMethodDescriptionstatic <T> T
IuHttp.get
(URI uri, HttpResponseHandler<T> responseHandler) Sends an HTTP GET request to a public URI.static <T,
E extends Exception>
TIuHttp.send
(Class<E> exceptionClass, URI uri, UnsafeConsumer<HttpRequest.Builder> requestConsumer, HttpResponseHandler<T> responseHandler) Sends a synchronous HTTP request expecting 200 OK and accepting all response headers.static <T> T
IuHttp.send
(URI uri, UnsafeConsumer<HttpRequest.Builder> requestConsumer, HttpResponseHandler<T> responseHandler) Sends a synchronous HTTP request expecting 200 OK and accepting all response headers.