fromEndpoint
Create a HttpEndpointRequestHandler
Return
the built handler
Parameters
endpoint
the endpoint to wrap
open fun fromEndpoint(endpoint: Endpoint, disableBidirectionalStreaming: Boolean): HttpEndpointRequestHandler
Create a HttpEndpointRequestHandler
Return
the built handler
Parameters
endpoint
the endpoint to wrap
disableBidirectionalStreaming
if true, disable bidirectional streaming with HTTP/2 requests. Restate initiates for each invocation a bidirectional streaming using HTTP/2 between restate-server and the SDK. In some network setups, for example when using a load balancers that buffer request/response, bidirectional streaming will not work correctly. Only in these scenarios, we suggest disabling bidirectional streaming.