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

what's the advantage to accessing request information via context.Context in server endpoint handlers? #2626

Open
nhooyr opened this Issue Feb 8, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@nhooyr
Copy link

nhooyr commented Feb 8, 2019

Why was the API designed such that request information like the metadata/remote peer information is accessed via the request context in server endpoint handlers and not a typed parameter? It makes discoverability really difficult as afaik there is no documentation regarding what exactly is available in the context for endpoint handlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment