Skip to content

Commit

Permalink
Add headers to the proto messages
Browse files Browse the repository at this point in the history
  • Loading branch information
LLKennedy committed Jan 27, 2020
1 parent aca5db0 commit 435e253
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 29 deletions.
82 changes: 53 additions & 29 deletions proto/proxy.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions proto/proxy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ message Request {
bytes payload = 3;
// Query params of the request, if present
map<string, string> params = 4;
// Headers won't be automatically translated into the GRPC requests, but they should be delivered in case manual conversion is needed
map<string, string> headers = 5;
}

// The response to send to the requestor
Expand All @@ -25,6 +27,8 @@ message Response {
uint32 status_code = 1;
// JSON data to return to the requestor
bytes payload = 2;
// Headers won't be automatically returned from GRPC requests, but they should be accepted in case manual conversion is needed
map<string, string> write_headers = 6;
}

// All valid HTTP method names
Expand Down

0 comments on commit 435e253

Please sign in to comment.