Module methanol
Package com.github.mizosoft.methanol
package com.github.mizosoft.methanol
-
ClassDescriptionA group of
adapters
, typically targeting different mapping formats, that facilitates creatingHttpRequest.BodyPublisher
,HttpResponse.BodyHandler
andHttpResponse.BodySubscriber
implementations based on these adapters.A builder ofAdapterCodec
.An object that converts high objects to or from request or response bodies respectively, using a defined format.ABodyAdapter
that decodes response bodies into objects.ABodyAdapter
that encodes objects into request bodies.BodyDecoder<T>AHttpResponse.BodySubscriber
that decodes the response body for consumption by a downstream subscriber.A factory ofBodyDecoders
for some defined encoding.ATrackedResponse
that knows it may have been generated from an HTTP cache.The status of an attempt to retrieve an HTTP response from cache.A group of cache directives.A builder ofCacheControl
instances, with explicit directive setters for request cache directives.ABodyPublisher
for form submission using theapplication/x-www-form-urlencoded
request type.A builder ofFormBodyPublisher
instances.A builder ofHttpCaches
.A listener to request/response & read/write events within the cache.Statistics of anHttpCache
.Strategy for recodingHttpCache
statistics.Thrown when all response headers aren't received within a timeout.Thrown when a body subscriber doesn't receive a requested signal within a timeout.Static functions for checking response status codes.A MIME type.AnHttpClient
with interceptors, request decoration, HTTP caching and reactive extensions.Methanol.BaseBuilder<B extends Methanol.BaseBuilder<B>>A baseMethanol
builder allowing to set the non-standard properties.A builder ofMethanol
instances.An object that intercepts requests being sent over aMethanol
client.An object that gives interceptors the ability to relay requests to sibling interceptors, till eventually being sent by the client's backend.A builder forMethanol
instances with a pre-specified backendHttpClient
.ABodyPublisher
with a media type.Factory for additionalHttpResponse.BodyHandler
implementations.Factory for additionalHttpRequest.BodyPublisher
implementations.Factory for additionalHttpResponse.BodySubscriber
implementations.ABodyPublisher
for multipart bodies.A builder ofMultipartBodyPublisher
instances.A part in a multipart request body.A mutableHttpRequest
that supportstags
, relative URIs&
setting arbitrary objects as request bodies.A progress tracker for upload and download operations.A builder ofProgressTrackers
.A listener ofprogress events
.A progress event for a multipart body with per-part progress info.A progress event.A builder ofHttpResponse
instances.A response body that is yet to be handled into the desirable type (seeMethanol.send(HttpRequest)
).An extension that provides a storage backend for anHttpCache
.AnHttpRequest
that can carry arbitrary values, referred to as tags.AnHttpRequest.Builder
that allows attaching tags.A response with recorded send/receive timestamps.TypeRef<T>A generic object that holds a reference to theType
of its generic argumentT
.ABodyPublisher
that allows streaming the body's content through anOutputStream
or aWritableByteChannel
.