Package io.servicetalk.http.api
@ElementsAreNonnullByDefault
package io.servicetalk.http.api
The HTTP API package.
-
ClassDescriptionThe equivalent of
HttpClient
but with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpConnection
but with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpRequester
with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpService
but with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofStreamingHttpClient
but with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofStreamingHttpConnection
but with synchronous/blocking APIs instead of asynchronous APIs.The equivalent ofHttpRequest
but provides the payload as aBlockingIterable
.The equivalent ofStreamingHttpRequester
but with synchronous/blocking APIs instead of asynchronous APIs.A factory for creatingBlockingStreamingHttpRequest
s.A combination ofBlockingStreamingHttpRequestFactory
andBlockingStreamingHttpResponseFactory
.The equivalent ofHttpResponse
but provides the payload as aBlockingIterable
.A factory for creatingBlockingStreamingHttpResponse
s.The equivalent ofHttpResponse
but provides an ability to write the payload to anHttpPayloadWriter
.The equivalent ofStreamingHttpService
but 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 aConnectExecutionStrategy
and anHttpExecutionStrategy
.Deprecated.Deprecated.AStreamingHttpClientFilter
that adds encoding / decoding functionality for requests and responses respectively, as these are specified by the spec Content-Encoding.AStreamingHttpService
that 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 forStreamingHttpRequestFactory
andStreamingHttpResponseFactory
.Implementation ofFilterableStreamingHttpLoadBalancedConnection
that delegates all methods.HttpConnectionContext
implementation that delegates all calls to a providedHttpConnectionContext
.An implementation ofHttpExecutionContext
that delegates all method calls to anotherHttpExecutionContext
.AHttpServerBuilder
that delegates all methods to anotherHttpServerBuilder
.An implementation ofHttpServiceContext
that delegates all calls to a providedHttpServiceContext
.AMultiAddressHttpClientBuilder
that delegates all methods to anotherMultiAddressHttpClientBuilder
.APartitionedHttpClientBuilder
that delegates all methods to anotherPartitionedHttpClientBuilder
.ASingleAddressHttpClientBuilder
that delegates all methods to anotherSingleAddressHttpClientBuilder
.HttpHeaders
which are always empty and does not allow modification.A special type ofStreamingHttpConnection
for the exclusive use of the caller ofStreamingHttpClient.reserveConnection(HttpRequestMetaData)
.AStreamingHttpClient
that supports filtering.AStreamingHttpConnection
that supported filtering.AFilterableStreamingHttpConnection
that supported filtering and implements theLoadBalancedConnection
contract.Utilities to use forHttpHeaders
implementations.AnIterator
ofHttpCookiePair
designed to iterate across multiple values ofHttpHeaderNames.COOKIE
for 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 aMap
for 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.ConnectionContext
for 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 knownException
subtypes into an HTTP response with an appropriateHttpResponseStatus
.An extension ofExecutionContext
for HTTP.A factory to create differentHttpExecutionStrategy
.A builder to build anHttpExecutionStrategy
.An execution strategy for HTTP client and servers.An entity that wishes to influenceHttpExecutionStrategy
for 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>ALoadBalancerFactory
for HTTP clients.Default implementation ofFilterableStreamingHttpLoadBalancedConnection
.Meta data shared between requests and responses.TheOutputStream
which provides access to the HTTP trailers.An interface which mimics behavior likeOutputStream
, but allows for writing of objects of typeHttpPayloadWriter
and 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 creatingHttpRequest
s.Meta data associated with an HTTP request.A static factory class forHttpRequestMetaData
objects.HTTP Request Methods.A combination ofHttpRequestFactory
andHttpResponseFactory
.An HTTP response.A factory for creatingHttpResponse
s.Meta data associated with an HTTP response.A static factory class forHttpResponseMetaData
objects.The class of response status codes.Deprecated.Deprecated.UseHttpSerializers
.Deprecated.A factory to address serialization concerns for HTTP request/response payload bodies.Both aHttpSerializer2
andHttpDeserializer2
.Factory for creation ofHttpSerializerDeserializer
andHttpStreamingSerializerDeserializer
.A builder for building HTTP Servers.Context of an HTTP server.Parent interface for all available HTTP services.AHttpConnectionContext
for use in theHttpService
context.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 aHttpStreamingSerializer
andHttpStreamingDeserializer
.An indicator that can be attached to the last chunk of payload to carry trailer headers.A builder ofStreamingHttpClient
instances which have a capacity to call any server based on the parsed absolute-form URL address information from eachStreamingHttpRequest
.Initializes theSingleAddressHttpClientBuilder
for each new client.Deprecated.We are unaware of anyone using "partition" feature and plan to remove it in future releases.Initializes theSingleAddressHttpClientBuilder
for 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 ofProxyConnectException
that 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 ofBlockingHttpConnection
for the exclusive use of the caller ofBlockingHttpClient.reserveConnection(HttpRequestMetaData)
.A special type ofBlockingStreamingHttpConnection
for the exclusive use of the caller ofBlockingStreamingHttpClient.reserveConnection(HttpRequestMetaData)
.A special type ofHttpConnection
for the exclusive use of the caller ofHttpClient.reserveConnection(HttpRequestMetaData)
.A special type ofStreamingHttpConnection
for the exclusive use of the caller ofStreamingHttpClient.reserveConnection(HttpRequestMetaData)
.AReservedStreamingHttpConnectionFilter
that delegates all methods to a differentReservedStreamingHttpConnectionFilter
.A builder ofStreamingHttpClient
instances which call a single server based on the provided unresolved address.StatelessTrailersTransformer<Payload>An implementation ofTrailersTransformer
that does not require any state.Deprecated.MergeExecutionStrategy
directly instead.The equivalent ofHttpClient
but that acceptsStreamingHttpRequest
and returnsStreamingHttpResponse
.AStreamingHttpClient
that delegates all methods to a differentStreamingHttpClient
.A factory forStreamingHttpClientFilter
.The equivalent ofHttpConnection
but that acceptsStreamingHttpRequest
and returnsStreamingHttpResponse
.AStreamingHttpConnection
that delegates all methods to a differentStreamingHttpConnection
.A factory forStreamingHttpConnectionFilter
.The equivalent ofHttpRequest
but provides the payload as aPublisher
.The equivalent ofHttpRequester
but that acceptsStreamingHttpRequest
and returnsStreamingHttpResponse
.A factory for creatingStreamingHttpRequest
s.A combination ofStreamingHttpRequestFactory
andStreamingHttpResponseFactory
.Factory methods for creatingStreamingHttpRequest
s.The equivalent ofHttpResponse
but provides the payload as aPublisher
.A factory for creatingStreamingHttpResponse
s.Factory methods for creatingStreamingHttpResponse
s.A service contract for the HTTP protocol.An implementation ofStreamingHttpService
that delegates all methods to the providedStreamingHttpService
.A factory forStreamingHttpServiceFilter
.Wraps aStreamingHttpService
to apply the providedHttpExecutionStrategy
andExecutor
for offloading.TrailersTransformer<State,Payload> A contract for transforming trailers for a streaming HTTP request/response.