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.
Deprecated.
There is no use of this interface in our codebase, it will be removed in the future releases. If you
depend on it, consider replicating a similar interface in your codebase.
A function that given flattened stream of
HttpRequestMetaData
, payload and
trailers, for the passed StreamingHttpRequest
returns a Single
.-
Method Summary
Modifier and TypeMethodDescriptioninvokeClient
(Publisher<Object> objectPublisher, State state) Deprecated.Invokes the client.
-
Method Details
-
invokeClient
Single<StreamingHttpResponse> invokeClient(Publisher<Object> objectPublisher, @Nullable State state) Deprecated.Invokes the client.- Parameters:
objectPublisher
- flattened stream ofHttpRequestMetaData
, payload and trailers.state
- the state to pass.- Returns:
- a
Single
of theStreamingHttpResponse
.
-