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_CONTENTValidates a 204 NO CONTENT response and returns null.static final HttpResponseHandler<JsonValue> IuHttp.READ_JSONValidates 200 OK then parses the response as a JSON object.static final HttpResponseHandler<JsonObject> IuHttp.READ_JSON_OBJECTValidates 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> TIuHttp.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> TIuHttp.send(URI uri, UnsafeConsumer<HttpRequest.Builder> requestConsumer, HttpResponseHandler<T> responseHandler) Sends a synchronous HTTP request expecting 200 OK and accepting all response headers.