Package io.servicetalk.http.api
@ElementsAreNonnullByDefault
package io.servicetalk.http.api
The HTTP API package.
-
ClassDescriptionThe equivalent of
HttpClientbut with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpConnectionbut with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpRequesterwith synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpServicebut with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofStreamingHttpClientbut with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofStreamingHttpConnectionbut with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpRequestbut provides the payload as aBlockingIterable.The equivalent ofStreamingHttpRequesterbut with synchronous/blocking APIs instead of asynchronous APIs.A factory for creatingBlockingStreamingHttpRequests.A combination ofBlockingStreamingHttpRequestFactoryandBlockingStreamingHttpResponseFactory.The equivalent ofHttpResponsebut provides the payload as aBlockingIterable.A factory for creatingBlockingStreamingHttpResponses.The equivalent ofHttpResponsebut provides an ability to write the payload to anHttpPayloadWriter.The equivalent ofStreamingHttpServicebut with synchronous/blocking APIs instead of asynchronous APIs.ClientInvoker<State>Deprecated.There is no use of this interface in our codebase, it will be removed in the future releases.Combines aConnectExecutionStrategyand anHttpExecutionStrategy.Deprecated.Deprecated.AStreamingHttpClientFilterthat adds encoding / decoding functionality for requests and responses respectively, as these are specified by the spec Content-Encoding.AStreamingHttpServicethat adds encoding / decoding functionality for responses and requests respectively, as these are specified by the spec Content-Encoding.Default implementation ofHttpCookiePair.Default implementation ofHttpExecutionContext.Default implementation ofHttpHeadersFactory.DefaultHttpLoadBalancerFactory<ResolvedAddress>Default implementation ofHttpLoadBalancerFactory.Default implementation ofHttpSetCookie.A default implementation forStreamingHttpRequestFactoryandStreamingHttpResponseFactory.Implementation ofFilterableStreamingHttpLoadBalancedConnectionthat delegates all methods.HttpConnectionContextimplementation that delegates all calls to a providedHttpConnectionContext.An implementation ofHttpExecutionContextthat delegates all method calls to anotherHttpExecutionContext.AHttpServerBuilderthat delegates all methods to anotherHttpServerBuilder.An implementation ofHttpServiceContextthat delegates all calls to a providedHttpServiceContext.AMultiAddressHttpClientBuilderthat delegates all methods to anotherMultiAddressHttpClientBuilder.APartitionedHttpClientBuilderthat delegates all methods to anotherPartitionedHttpClientBuilder.ASingleAddressHttpClientBuilderthat delegates all methods to anotherSingleAddressHttpClientBuilder.HttpHeaderswhich are always empty and does not allow modification.A special type ofStreamingHttpConnectionfor the exclusive use of the caller ofStreamingHttpClient.reserveConnection(HttpRequestMetaData).AStreamingHttpClientthat supports filtering.AStreamingHttpConnectionthat supported filtering.AFilterableStreamingHttpConnectionthat supported filtering and implements theLoadBalancedConnectioncontract.Utilities to use forHttpHeadersimplementations.AnIteratorofHttpCookiePairdesigned to iterate across multiple values ofHttpHeaderNames.COOKIEfor a specificcookie-name.Represents an http/2 error code.An exception that represents a http/2 error.Object representing a HTTP/2 Setting frame.Builder to help create aMapfor HTTP/2 Setting.Conversion routines toStreamingHttpService.Deprecated.this interface is not needed anymore and will be removed in a future version with no replacement.Provides a means to issue requests against HTTP service.Represents a single fixed connection to a HTTP server.ConnectionContextfor HTTP.AllContextMap.Key(s) defined for HTTP.Interface defining a HTTP cookie-pair.Deprecated.A factory to address deserialization concerns for HTTP request/response payload bodies.HttpEventKey<T>A key which identifies a configuration setting for a connection.Filter that maps knownExceptionsubtypes into an HTTP response with an appropriateHttpResponseStatus.An extension ofExecutionContextfor HTTP.A factory to create differentHttpExecutionStrategy.A builder to build anHttpExecutionStrategy.An execution strategy for HTTP client and servers.An entity that wishes to influenceHttpExecutionStrategyfor an HTTP client or server.Common request header names and response header names.HTTP Header Fields.Factory method for creatingHttpHeaders.Common request header values and response header values.An observer interface that provides visibility into HTTP lifecycle events.An observer interface that provides visibility into events associated with a single HTTP exchange.An observer interface that provides visibility into events associated with a single HTTP request.An observer interface that provides visibility into events associated with a single HTTP response.HttpLoadBalancerFactory<ResolvedAddress>ALoadBalancerFactoryfor HTTP clients.Default implementation ofFilterableStreamingHttpLoadBalancedConnection.Meta data shared between requests and responses.TheOutputStreamwhich provides access to the HTTP trailers.An interface which mimics behavior likeOutputStream, but allows for writing of objects of typeHttpPayloadWriterand provides access to the HTTP trailers.Defines configuration options for HTTP protocol versions.HTTP protocol versioning.A holder for all HTTP-specific providers that can be registered usingServiceLoader.Provider forHttpServerBuilder.Provider forMultiAddressHttpClientBuilder.Provider forSingleAddressHttpClientBuilder.An HTTP request.Provides a means to make a HTTP request.A factory for creatingHttpRequests.Meta data associated with an HTTP request.A static factory class forHttpRequestMetaDataobjects.HTTP Request Methods.A combination ofHttpRequestFactoryandHttpResponseFactory.An HTTP response.A factory for creatingHttpResponses.Meta data associated with an HTTP response.A static factory class forHttpResponseMetaDataobjects.The class of response status codes.Deprecated.Deprecated.UseHttpSerializers.Deprecated.A factory to address serialization concerns for HTTP request/response payload bodies.Both aHttpSerializer2andHttpDeserializer2.Factory for creation ofHttpSerializerDeserializerandHttpStreamingSerializerDeserializer.A builder for building HTTP Servers.Context of an HTTP server.Parent interface for all available HTTP services.AHttpConnectionContextfor use in theHttpServicecontext.An interface defining a set-cookie-string.Represents samesite-value for the SameSite attribute.HTTP request/response deserialization for streaming payload bodies.HTTP request/response serialization for streaming payload bodies.Both aHttpStreamingSerializerandHttpStreamingDeserializer.An indicator that can be attached to the last chunk of payload to carry trailer headers.A builder ofStreamingHttpClientinstances which have a capacity to call any server based on the parsed absolute-form URL address information from eachStreamingHttpRequest.Initializes theSingleAddressHttpClientBuilderfor each new client.Deprecated.We are unaware of anyone using "partition" feature and plan to remove it in future releases.Initializes theSingleAddressHttpClientBuilderfor each new client.Deprecated.Indication that the payload was too large and failed to process.ProxyConfig<A>Configuration for a proxy.Builder forProxyConfig.An exception while processing HTTP/1.1 CONNECT request.A subclass ofProxyConnectExceptionthat indicates an unexpected response status from a proxy received for HTTP/1.1 CONNECT request.Configuration options for redirection.Predicate to make the final decision if redirect should be performed or not based on the given context.Provides access to the full context of the redirect to apply transformations for the pre-initialized redirect request.Builder forRedirectConfig.A special type ofBlockingHttpConnectionfor the exclusive use of the caller ofBlockingHttpClient.reserveConnection(HttpRequestMetaData).A special type ofBlockingStreamingHttpConnectionfor the exclusive use of the caller ofBlockingStreamingHttpClient.reserveConnection(HttpRequestMetaData).A special type ofHttpConnectionfor the exclusive use of the caller ofHttpClient.reserveConnection(HttpRequestMetaData).A special type ofStreamingHttpConnectionfor the exclusive use of the caller ofStreamingHttpClient.reserveConnection(HttpRequestMetaData).AReservedStreamingHttpConnectionFilterthat delegates all methods to a differentReservedStreamingHttpConnectionFilter.A builder ofStreamingHttpClientinstances which call a single server based on the provided unresolved address.StatelessTrailersTransformer<Payload>An implementation ofTrailersTransformerthat does not require any state.Deprecated.MergeExecutionStrategydirectly instead.The equivalent ofHttpClientbut that acceptsStreamingHttpRequestand returnsStreamingHttpResponse.AStreamingHttpClientthat delegates all methods to a differentStreamingHttpClient.A factory forStreamingHttpClientFilter.The equivalent ofHttpConnectionbut that acceptsStreamingHttpRequestand returnsStreamingHttpResponse.AStreamingHttpConnectionthat delegates all methods to a differentStreamingHttpConnection.A factory forStreamingHttpConnectionFilter.The equivalent ofHttpRequestbut provides the payload as aPublisher.The equivalent ofHttpRequesterbut that acceptsStreamingHttpRequestand returnsStreamingHttpResponse.A factory for creatingStreamingHttpRequests.A combination ofStreamingHttpRequestFactoryandStreamingHttpResponseFactory.Factory methods for creatingStreamingHttpRequests.The equivalent ofHttpResponsebut provides the payload as aPublisher.A factory for creatingStreamingHttpResponses.Factory methods for creatingStreamingHttpResponses.A service contract for the HTTP protocol.An implementation ofStreamingHttpServicethat delegates all methods to the providedStreamingHttpService.A factory forStreamingHttpServiceFilter.Wraps aStreamingHttpServiceto apply the providedHttpExecutionStrategyandExecutorfor offloading.TrailersTransformer<State,Payload> A contract for transforming trailers for a streaming HTTP request/response.Exception thrown when a payload was encoded with an unsupported encoder.