Skip to content

Commit

Permalink
Specify to use on server for retrieving context
Browse files Browse the repository at this point in the history
  • Loading branch information
purnesh42H committed May 17, 2024
1 parent e22436a commit b1c94d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/grpc-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Server side metadata sending and receiving examples are available [here](../exam

### Receiving metadata

To read metadata sent by the client, the server needs to retrieve it from RPC context.
To read metadata sent by the client, the server needs to retrieve it from RPC context using `FromIncomingContext`. Do not use `FromOutgoingContext` on server as it is for client-side only.
If it is a unary call, the RPC handler's context can be used.
For streaming calls, the server needs to get context from the stream.

Expand Down

0 comments on commit b1c94d6

Please sign in to comment.