Package io.servicetalk.http.api
Interface StreamingHttpConnection
- All Superinterfaces:
AsyncCloseable,AutoCloseable,FilterableStreamingHttpConnection,GracefulAutoCloseable,ListenableAsyncCloseable,StreamingHttpRequester,StreamingHttpRequestFactory
- All Known Subinterfaces:
FilterableStreamingHttpLoadBalancedConnection,ReservedStreamingHttpConnection
- All Known Implementing Classes:
DelegatingFilterableStreamingHttpLoadBalancedConnection,HttpLoadBalancerFactory.DefaultFilterableStreamingHttpLoadBalancedConnection
The equivalent of
HttpConnection but that accepts StreamingHttpRequest and returns
StreamingHttpResponse.-
Method Summary
Modifier and TypeMethodDescriptionConvert thisStreamingHttpConnectionto theBlockingHttpConnectionAPI.Convert thisStreamingHttpConnectionto theBlockingStreamingHttpConnectionAPI.Convert thisStreamingHttpConnectionto theHttpConnectionAPI.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.http.api.FilterableStreamingHttpConnection
connectionContext, transportEventStreamMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosingMethods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
close, closeGracefully, executionContext, httpResponseFactory, request
-
Method Details
-
asConnection
HttpConnection asConnection()Convert thisStreamingHttpConnectionto theHttpConnectionAPI.This API is provided for convenience. It is recommended that filters are implemented using the
StreamingHttpConnectionasynchronous API for maximum portability.- Returns:
- a
HttpConnectionrepresentation of thisStreamingHttpConnection.
-
asBlockingStreamingConnection
BlockingStreamingHttpConnection asBlockingStreamingConnection()Convert thisStreamingHttpConnectionto theBlockingStreamingHttpConnectionAPI.This API is provided for convenience for a more familiar sequential programming model. It is recommended that filters are implemented using the
StreamingHttpConnectionasynchronous API for maximum portability.- Returns:
- a
BlockingStreamingHttpConnectionrepresentation of thisStreamingHttpConnection.
-
asBlockingConnection
BlockingHttpConnection asBlockingConnection()Convert thisStreamingHttpConnectionto theBlockingHttpConnectionAPI.This API is provided for convenience for a more familiar sequential programming model. It is recommended that filters are implemented using the
StreamingHttpConnectionasynchronous API for maximum portability.- Returns:
- a
BlockingHttpConnectionrepresentation of thisStreamingHttpConnection.
-