Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regular gRPC support #22

Open
2 tasks
public opened this issue Feb 21, 2020 · 3 comments
Open
2 tasks

Regular gRPC support #22

public opened this issue Feb 21, 2020 · 3 comments

Comments

@public
Copy link
Owner

public commented Feb 21, 2020

Currently everything is built assuming gRPC-Web but it doesn't seem like it would be much work to also support normal gRPC with H2 only connections although it would depend on there being a WSGI or ASGI server that could actually speak that.

  • Is it feasible that any existing ASGI or WSGI servers could speak gRPC? This mostly means supporting bare H2 connections.
  • What does sonora need to do to support regular gRPC?
@akshayjshah
Copy link

akshayjshah commented Jan 19, 2022

As I understand it, the main problem is that the HTTP/2 gRPC protocol requires sending errors as HTTP trailers. Trailers aren't specific to HTTP/2, but as far as I know they're not exposed by the WSGI standard. (I don't know about ASGI.)

Is there typically an implementation-specific way to access HTTP features that aren't part of the standard?

@public
Copy link
Owner Author

public commented Jan 19, 2022

Re WSGI python-web-sig/wsgi-ng#9 it's not clear if any implementations support it even via an environ extension.

Re ASGI django/asgiref#141 I think there is some interest in providing this capability but seems like no implementations support it yet either.

@jluebbe
Copy link

jluebbe commented Jul 1, 2024

Re ASGI django/asgiref#141 I think there is some interest in providing this capability but seems like no implementations support it yet either.

HTTP Trailers was added to the ASGI spec: django/asgiref#339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants