mirror of https://github.com/grpc/grpc-web.git
commit
73639d38e6
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ GrpcWebClientBase.prototype.rpcCall = function(
|
||||||
callback({
|
callback({
|
||||||
code: error.code,
|
code: error.code,
|
||||||
message: error.message
|
message: error.message
|
||||||
});
|
}, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -227,4 +227,3 @@ testSuite({
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue