Package io.servicetalk.http.api
Interface AbstractHttpRequesterFilterTest.RequestHandler
-
- Enclosing class:
- AbstractHttpRequesterFilterTest
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface AbstractHttpRequesterFilterTest.RequestHandler
Handler forHttpRequester.request(HttpExecutionStrategy, HttpRequest)
calls as delegated from the filter under test.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static AbstractHttpRequesterFilterTest.RequestHandler
ok()
Default OK response handler.Single<StreamingHttpResponse>
request(StreamingHttpResponseFactory respFactory, StreamingHttpRequest request)
Handle requests from the filter under test.default AbstractHttpRequesterFilterTest.RequestWithContextHandler
withContext()
Conversion toAbstractHttpRequesterFilterTest.RequestWithContextHandler
.
-
-
-
Method Detail
-
request
Single<StreamingHttpResponse> request(StreamingHttpResponseFactory respFactory, StreamingHttpRequest request)
Handle requests from the filter under test.- Parameters:
respFactory
- theStreamingHttpResponseFactory
of theStreamingHttpRequester
request
-StreamingHttpRequest
to handle- Returns:
- the
StreamingHttpResponse
to return to the filter
-
ok
static AbstractHttpRequesterFilterTest.RequestHandler ok()
Default OK response handler.- Returns:
- OK response handler.
-
withContext
default AbstractHttpRequesterFilterTest.RequestWithContextHandler withContext()
Conversion toAbstractHttpRequesterFilterTest.RequestWithContextHandler
.- Returns:
- a conversion of this handler to
AbstractHttpRequesterFilterTest.RequestWithContextHandler
.
-
-