From ab8580d94078b9bc52c931545a2d6b227ae61499 Mon Sep 17 00:00:00 2001 From: Wenbo Zhu Date: Tue, 27 Mar 2018 14:20:08 -0700 Subject: [PATCH 1/2] Remove browser-specific features. --- doc/PROTOCOL-WEB.md | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/doc/PROTOCOL-WEB.md b/doc/PROTOCOL-WEB.md index c31a048a7c9..6f2c3031a61 100644 --- a/doc/PROTOCOL-WEB.md +++ b/doc/PROTOCOL-WEB.md @@ -106,19 +106,6 @@ to security policies with XHR # Other features -Compression - -* Full-body compression is supported and expected for all unary -requests/responses. The compression/decompression will be done -by browsers, using standard Content-Encoding headers - * “grpc-encoding” header is not used - * SDCH, Brotli will be supported -* Message-level compression for streamed requests/responses is not supported -because manual compression/decompression is prohibitively expensive using JS - * Per-message compression may be feasible in future with wasm - ---- - Retries, caching * Will spec out the support after their respective gRPC spec extensions @@ -128,24 +115,6 @@ are finalized --- -Security - -* XSRF, XSS etc to be specified - ---- - -CORS preflight - -* Should follow the [CORS spec](https://developer.mozilla.org/en-US/docs/Web/HTTP/Server-Side_Access_Control) - * Access-Control-Allow-Credentials to allow Authorization headers - * Access-Control-Allow-Methods to allow POST and (preflight) OPTIONS only - * Access-Control-Allow-Headers to whatever the preflight request carries -* The client library may support header overwrites to avoid preflight - * https://github.com/whatwg/fetch/issues/210 -* CSP support to be specified - ---- - Keep-alive * HTTP/2 PING is not supported or used @@ -165,3 +134,8 @@ Versioning * Special headers may be introduced to support features that may break compatiblity. +--- + +Browser-specific features + +* Certain features are unique to browser or HTML clients, and for those features please check the [spec doc](https://github.com/grpc/grpc-web/blob/master/PROTOCOL-WEB.md) published in the grpc/grpc-web repo. From a01137507d11f0f201881590adee3ac96d0db8ee Mon Sep 17 00:00:00 2001 From: Wenbo Zhu Date: Tue, 27 Mar 2018 15:31:12 -0700 Subject: [PATCH 2/2] Update PROTOCOL-WEB.md --- doc/PROTOCOL-WEB.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/PROTOCOL-WEB.md b/doc/PROTOCOL-WEB.md index 6f2c3031a61..c157cd7e135 100644 --- a/doc/PROTOCOL-WEB.md +++ b/doc/PROTOCOL-WEB.md @@ -138,4 +138,4 @@ Versioning Browser-specific features -* Certain features are unique to browser or HTML clients, and for those features please check the [spec doc](https://github.com/grpc/grpc-web/blob/master/PROTOCOL-WEB.md) published in the grpc/grpc-web repo. +* For features that are unique to browser or HTML clients, check the [spec doc](https://github.com/grpc/grpc-web/blob/master/PROTOCOL-WEB.md) published in the grpc/grpc-web repo.