Skip to content

Commit

Permalink
Docs - Add section about how HTTP maps to gRPC (grpc-ecosystem#227)
Browse files Browse the repository at this point in the history
* Docs - Add section about how HTTP maps to gRPC

* README - Incorporate code review feedback

Feedback from @achew22 for github.com/grpc-ecosystem#227
  • Loading branch information
philipithomas authored and yugui committed Oct 4, 2016
1 parent 865c0a0 commit 3bbdad7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ But patch is welcome.
* Encoding request/response body in XML
* True bi-directional streaming. (Probably impossible?)
# Mapping gRPC to HTTP
* [How gRPC error codes map to HTTP status codes in the response](https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go#L15)
* HTTP request source IP is added as `X-Forwarded-For` gRPC request header
* HTTP request host is added as `X-Forwarded-Host` gRPC request header
* HTTP `Authorization` header is added as `authorization` gRPC request header
* Remaining HTTP header keys are prefixed with `Grpc-Metadata-` and added with their values to gRPC request header
# Contribution
See [CONTRIBUTING.md](http://github.com/grpc-ecosystem/grpc-gateway/blob/master/CONTRIBUTING.md).
Expand Down

0 comments on commit 3bbdad7

Please sign in to comment.