Module methanol
Package com.github.mizosoft.methanol
-
Interface Summary Interface Description BodyAdapter An object that converts objects to or from request or response bodies respectively, using a defined format.BodyAdapter.Decoder ABodyAdapterthat decodes response bodies into objects.BodyAdapter.Encoder ABodyAdapterthat encodes objects into request bodies.BodyAdapter.Hints A collection of hints that provide additional context to customize an adapter's encoding/decoding behavior.BodyDecoder<T> AHttpResponse.BodySubscriberthat decodes the response body for consumption by a downstream subscriber.BodyDecoder.Factory A factory ofBodyDecoderinstances for some defined encoding.CacheAwareResponse<T> ATrackedResponsethat knows it may have been generated from an HTTP cache.HeadersAccumulator<T extends HeadersAccumulator<T>> An accumulator of header name-value pairs.HttpCache.Listener A listener to request/response & read/write events within the cache.HttpCache.Stats Statistics of anHttpCache.HttpCache.StatsRecorder Strategy for recodingHttpCachestatistics.Methanol.Interceptor An object that intercepts requests before being sent and responses before being returned.Methanol.Interceptor.Chain<T> An object that gives interceptors the ability to relay requests to sibling interceptors, till eventually being sent by the client's backend.MimeBodyPublisher ABodyPublisherwith a media type.ProgressTracker.Listener A listener ofprogress events.ProgressTracker.MultipartListener ProgressTracker.MultipartProgress A progress event for a multipart body with per-part progress info.ProgressTracker.Progress A progress event.ResponsePayload A response body that is yet to be handled into the desirable type.RetryInterceptor.BackoffStrategy A strategy for backing off (delaying) before a retry.RetryInterceptor.Context<T> Context for deciding whether an HTTP call should be retried.RetryInterceptor.Listener A listener forRetryInterceptorevents.StorageExtension An extension that provides a storage backend for anHttpCache.TaggableRequest.Builder AnHttpRequest.Builderthat allows attaching tags.TrackedResponse<T> A response with recorded send/receive timestamps. -
Class Summary Class Description AdapterCodec AdapterCodec.Builder A builder ofAdapterCodecinstances.BodyAdapter.Hints.Builder A builder ofHintobjects.CacheControl A group of cache directives.CacheControl.Builder A builder ofCacheControlinstances, with explicit directive setters for request cache directives.FormBodyPublisher ABodyPublisherfor form submission using theapplication/x-www-form-urlencodedrequest type.FormBodyPublisher.Builder A builder ofFormBodyPublisherinstances.HttpCache HttpCache.Builder A builder ofHttpCaches.HttpStatus Static functions for checking response status codes.MediaType A MIME type.Methanol AnHttpClientwith interceptors, request decoration, HTTP caching and reactive extensions.Methanol.BaseBuilder<B extends Methanol.BaseBuilder<B>> A baseMethanolbuilder allowing to set the non-standard properties.Methanol.Builder A builder ofMethanolinstances.Methanol.WithClientBuilder A builder forMethanolinstances with a pre-specified backendHttpClient.MoreBodyHandlers Static factories for additionalHttpResponse.BodyHandlerimplementations.MoreBodyPublishers Static factories for additionalHttpRequest.BodyPublisherimplementations.MoreBodySubscribers Static factories for additionalHttpResponse.BodySubscriberimplementations.MultipartBodyPublisher ABodyPublisherfor multipart bodies.MultipartBodyPublisher.Builder A builder ofMultipartBodyPublisherinstances.MultipartBodyPublisher.Part A part in a multipart request body.MutableRequest A mutableHttpRequestthat supportstags, relative URIs&setting arbitrary objects as request bodies.ProgressTracker A progress tracker for upload and download operations.ProgressTracker.Builder A builder ofProgressTrackers.ResponseBuilder<T> A builder ofHttpResponseinstances.RetryInterceptor An interceptor that retries HTTP requests based on configurable conditions.RetryInterceptor.Builder A builder ofRetryInterceptorinstances.TaggableRequest AnHttpRequestthat can carry arbitrary values, referred to as tags.TypeRef<T> A generic object that holds a reference to theTypeof its generic argumentTypeRef.WritableBodyPublisher ABodyPublisherthat allows streaming the body's content through anOutputStreamor aWritableByteChannel. -
Enum Summary Enum Description CacheAwareResponse.CacheStatus The status of an attempt to retrieve an HTTP response from cache. -
Exception Summary Exception Description HttpHeadersTimeoutException Thrown when all response headers aren't received within a timeout.HttpReadTimeoutException Thrown when a body subscriber doesn't receive a requested signal within a timeout.HttpRetriesExhaustedException Thrown when aRetryInterceptorexhausts maximum retries.