@FunctionalInterface public interface StreamingHttpService extends AsyncCloseable, HttpExecutionStrategyInfluencer
| Modifier and Type | Method and Description |
|---|---|
default Completable |
closeAsync()
Closes this
StreamingHttpService asynchronously. |
Single<StreamingHttpResponse> |
handle(HttpServiceContext ctx,
StreamingHttpRequest request,
StreamingHttpResponseFactory responseFactory)
Handles a single HTTP request.
|
default HttpExecutionStrategy |
requiredOffloads() |
defaultStreamingInfluencer, influenceStrategySingle<StreamingHttpResponse> handle(HttpServiceContext ctx, StreamingHttpRequest request, StreamingHttpResponseFactory responseFactory)
ctx - Context of the service.request - to handle.responseFactory - used to create StreamingHttpResponse objects.Single of HTTP response.default Completable closeAsync()
StreamingHttpService asynchronously.closeAsync in interface AsyncCloseableCompletable that when subscribed will close this StreamingHttpService.default HttpExecutionStrategy requiredOffloads()
HttpExecutionStrategyInfluencerThe provided default implementation requests offloading of all operations. Implementations that require no
offloading should be careful to return HttpExecutionStrategies.offloadNone() rather than
HttpExecutionStrategies.offloadNever().
requiredOffloads in interface ExecutionStrategyInfluencer<HttpExecutionStrategy>requiredOffloads in interface HttpExecutionStrategyInfluencer