From bbbd859a1d8d03180f20f18e287b5946751c666e Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Sun, 20 Nov 2016 13:39:03 -0800 Subject: [PATCH 1/2] add note about default marshaler --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 718047f3234..a98f09d7682 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,7 @@ But patch is welcome. * 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 +* While configurable, the default {un,}marshaling uses [jsonpb](https://godoc.org/github.com/golang/protobuf/jsonpb) with `OrigName: true`. # Contribution See [CONTRIBUTING.md](http://github.com/grpc-ecosystem/grpc-gateway/blob/master/CONTRIBUTING.md). From 1b706dd7ba1c4d08c0e2e42f238d4565d02781ec Mon Sep 17 00:00:00 2001 From: Travis Cline Date: Sun, 20 Nov 2016 13:39:46 -0800 Subject: [PATCH 2/2] note the default marshaler/unmarhsaler --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a98f09d7682..f5629b1f341 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,7 @@ To use the same port for custom HTTP handlers (e.g. serving `swagger.json`), gRP * Method parameters in request body * Method parameters in request path * Method parameters in query string -* Mapping streaming APIs to JSON streams +* Mapping streaming APIs to newline-delimited JSON streams * Mapping HTTP headers with `Grpc-Metadata-` prefix to gRPC metadata * Optionally emitting API definition for [Swagger](http://swagger.io). * Setting [gRPC timeouts](http://www.grpc.io/docs/guides/wire.html) through inbound HTTP `Grpc-Timeout` header.