Skip to content

Commit

Permalink
Fix prose in customizingyourgateway.md (#1359)
Browse files Browse the repository at this point in the history
* improved customizingyourgateway.md

* removed tabs

* formatted go snippets in customizingyourgateway.md

* Revert "formatted go snippets in customizingyourgateway.md"

This reverts commit f80d909.

	deleted:    .DS_Store
	deleted:    docs/.DS_Store
	deleted:    docs/_docs/.DS_Store
	modified:   docs/_docs/customizingyourgateway.md

* Revert "Revert "formatted go snippets in customizingyourgateway.md""

This reverts commit e3d2ad1.

* Revert "Revert "Revert "formatted go snippets in customizingyourgateway.md"""

This reverts commit bab7045.

* formatted go snippet

* reverted code

* reverted changes

* removed unwanted spaces
  • Loading branch information
iamrajiv authored May 21, 2020
1 parent eaa3b8f commit 2d9c2c0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/_docs/customizingyourgateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type Marshaler struct {
// A string to indent each level by. The presence of this field will
// also cause a space to appear between the field separator and
// value, and for newlines to be appear between fields and array
// value, and for newlines to appear between fields and array
// elements.
Indent string
Expand All @@ -79,8 +79,7 @@ also, this example code does not remove the query parameter `pretty` from furthe
## Customize unmarshaling per Content-Type
Having different unmarshaling options per Content-Type is possible by wrapping the decoder and
and passing that to `runtime.WithMarshalerOption`:
Having different unmarshaling options per Content-Type is possible by wrapping the decoder and passing that to `runtime.WithMarshalerOption`:
```go
type m struct {
Expand Down Expand Up @@ -303,7 +302,7 @@ to RPC methods that have a unary response.
When the method has a streaming response, grpc-gateway handles
that by emitting a newline-separated stream of "chunks". Each
chunk is an envelope that can container either a response message
chunk is an envelope that can contain either a response message
or an error. Only the last chunk will include an error, and only
when the RPC handler ends abnormally (i.e. with an error code).
Expand All @@ -317,7 +316,7 @@ mux := runtime.NewServeMux(
```
The signature of the handler is much more rigid because we need
to know the structure of the error payload in order to properly
to know the structure of the error payload to properly
encode the "chunk" schema into a Swagger/OpenAPI spec.
So the function must return a `*runtime.StreamError`. The handler
Expand Down

0 comments on commit 2d9c2c0

Please sign in to comment.