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 voidclose()Get theHttpExecutionContextused 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, traceMethods 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 theHttpExecutionContextused 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
HttpExecutionContextused during construction of this object.
-
httpResponseFactory
BlockingStreamingHttpResponseFactory httpResponseFactory()- Returns:
- a
BlockingStreamingHttpResponseFactory.
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-