Package io.servicetalk.http.api
Interface ClientInvoker<State>
-
- Type Parameters:
State
- Thestate
type to use.
- 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 interface ClientInvoker<State>
A function that given flattened stream ofHttpRequestMetaData
, payload and trailers, for the passedStreamingHttpRequest
returns aSingle
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Single<StreamingHttpResponse>
invokeClient(Publisher<java.lang.Object> objectPublisher, State state)
Invokes the client.
-
-
-
Method Detail
-
invokeClient
Single<StreamingHttpResponse> invokeClient(Publisher<java.lang.Object> objectPublisher, @Nullable State state)
Invokes the client.- Parameters:
objectPublisher
- flattened stream ofHttpRequestMetaData
, payload and trailers.state
- the state to pass.- Returns:
- a
Single
of theStreamingHttpResponse
.
-
-