Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 895 Bytes

index.md

File metadata and controls

24 lines (15 loc) · 895 Bytes

RPC

Provides a standard interface for calling methods on a server. This is currently built to be compatible with the gRPC over HTTP2 protocol.

Error codes returned are compatible with: https://grpc.github.io/grpc/core/md_doc_statuscodes.html

TODOs

// TODO: Technically in GRPC, the END_STREAM HTTP2 flag must always occur on a DATA frame: // "In scenarios where the Request stream needs to be closed but no data remains to be sent implementations MUST send an empty DATA frame with this flag set."

TODO: Force usage of HTTP2

/* Web protocol described in https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md :

  • If just returning an error with no messages, can return trailers in the response headers?

application/grpc-web+json or application/grpc-web+proto

  • 8th bit of the message start bit indicates if we are looking at trailers
  • used to implement response trailers. */