ScaleCube API Gateway is the single entry point for service consumers. handles incoming requests and proxy/route to the appropriate microservice instance.
Apache License 2.0
18
stars
7
forks
source link
Copy message headers to corresp. client transport headers #131
For http:
In HttpGatewayClient pass headers. See constructor io.scalecube.services.gateway.transport.http.HttpGatewayClient#HttpGatewayClient
For websocket:
Take headrs from client transport settings and set then into underlying websocket client transport. See construcrtor io.scalecube.services.gateway.transport.websocket.WebsocketGatewayClient#WebsocketGatewayClient
For rsocket:
Use HeaderCodec to encode map of headers and put them into .setupPayload() .
Subj.
For http: In HttpGatewayClient pass headers. See constructor
io.scalecube.services.gateway.transport.http.HttpGatewayClient#HttpGatewayClient
For websocket: Take headrs from client transport settings and set then into underlying websocket client transport. See construcrtor
io.scalecube.services.gateway.transport.websocket.WebsocketGatewayClient#WebsocketGatewayClient
For rsocket: Use HeaderCodec to encode map of headers and put them into
.setupPayload()
.