Merge pull request #224 from stanley-cheung/master

Minor edits
This commit is contained in:
Stanley Cheung 2018-08-06 14:51:34 -07:00 committed by GitHub
commit 73639d38e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View File

@ -140,8 +140,8 @@ $ protoc -I=$DIR echo.proto \
The default generated code has [Closure](https://developers.google.com/closure/library/) The default generated code has [Closure](https://developers.google.com/closure/library/)
`goog.require()` import style. Pass in `import_style=closure`. `goog.require()` import style. Pass in `import_style=closure`.
The [CommonJS](https://requirejs.org/docs/commonjs.html) style `require()` is also The [CommonJS](https://requirejs.org/docs/commonjs.html) style `require()` is
supported. Pass in `import_style=commonjs`. also supported. Pass in `import_style=commonjs`.
@ -151,8 +151,8 @@ For more information about the gRPC-Web wire format, please see the
[spec](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md#protocol-differences-vs-grpc-over-http2) [spec](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md#protocol-differences-vs-grpc-over-http2)
here. here.
The default generated code sends the payload in the `grpc-web-text` format. Pass in The default generated code sends the payload in the `grpc-web-text` format.
`mode=grpcwebtext`. Pass in `mode=grpcwebtext`.
- `Content-type: application/grpc-web-text` - `Content-type: application/grpc-web-text`
- Payload are base64-encoded. - Payload are base64-encoded.
@ -163,4 +163,3 @@ A binary protobuf format is also supported. Pass in `mode=grpcweb`.
- `Content-type: application/grpc-web+proto` - `Content-type: application/grpc-web+proto`
- Payload are in the binary protobuf format. - Payload are in the binary protobuf format.
- Only unary calls are supported for now. - Only unary calls are supported for now.

View File

@ -90,7 +90,7 @@ GrpcWebClientBase.prototype.rpcCall = function(
callback({ callback({
code: error.code, code: error.code,
message: error.message message: error.message
}); }, null);
} }
}); });

View File

@ -227,4 +227,3 @@ testSuite({
}, },
}); });