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

Receive GRPC metadata from HTTP headers. #18

Merged
merged 1 commit into from
Jun 11, 2015

Conversation

crast
Copy link

@crast crast commented Jun 9, 2015

  • Add support for Grpc-Metadata-(varname) headers
  • Modify codegen to do metadata annotation

Also somewhat related to #4 in that it starts the pathway towards supporting authentication headers.


import (
"golang.org/x/net/context"
"google.golang.org/grpc/metadata"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.
Would you mind fixing some style issues?

Organize imports in groups.
https://code.google.com/p/go-wiki/wiki/CodeReviewComments#Imports

@crast
Copy link
Author

crast commented Jun 10, 2015

OK I'll incorporate your comments

@crast
Copy link
Author

crast commented Jun 10, 2015

Also, from reading a few places ( 1 2 ) I'm going to remove the X- prefix from the header; as it's not recommended to be used

* Add support for Grpc-Metadata-(varname) headers
* Modify codegen to do metadata annotation
@crast
Copy link
Author

crast commented Jun 10, 2015

Updated diff

@yugui
Copy link
Member

yugui commented Jun 11, 2015

LGTM. Again, thanks a lot for your contribution.

yugui added a commit that referenced this pull request Jun 11, 2015
Receive GRPC metadata from HTTP headers.
@yugui yugui merged commit d0bfbea into grpc-ecosystem:master Jun 11, 2015
yugui added a commit that referenced this pull request Jul 2, 2015
Generated codes in examples/ are regenerated with
e5d20af (#18).
ithinker1991 referenced this pull request in tronprotocol/grpc-gateway Apr 26, 2018
add message reason code: reset
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

Successfully merging this pull request may close these issues.

2 participants