Package io.servicetalk.http.api
Interface BlockingStreamingHttpRequester
- All Superinterfaces:
AutoCloseable
,BlockingStreamingHttpRequestFactory
,GracefulAutoCloseable
- All Known Subinterfaces:
BlockingStreamingHttpClient
,BlockingStreamingHttpConnection
,ReservedBlockingStreamingHttpConnection
public interface BlockingStreamingHttpRequester
extends BlockingStreamingHttpRequestFactory, GracefulAutoCloseable
The equivalent of
StreamingHttpRequester
but with synchronous/blocking APIs instead of asynchronous APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Get theHttpExecutionContext
used during construction of this object.request
(BlockingStreamingHttpRequest request) Send arequest
.Methods inherited from interface io.servicetalk.http.api.BlockingStreamingHttpRequestFactory
connect, delete, get, head, newRequest, options, patch, post, put, trace
Methods inherited from interface io.servicetalk.concurrent.GracefulAutoCloseable
closeGracefully
-
Method Details
-
request
Send arequest
.- Parameters:
request
- the request to send.- Returns:
- The response.
- Throws:
Exception
-
executionContext
HttpExecutionContext executionContext()Get theHttpExecutionContext
used during construction of this object.Note that the
ExecutionContext.ioExecutor()
will not necessarily be associated with a specific thread unless that was how this object was built.- Returns:
- the
HttpExecutionContext
used during construction of this object.
-
httpResponseFactory
BlockingStreamingHttpResponseFactory httpResponseFactory()- Returns:
- a
BlockingStreamingHttpResponseFactory
.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-