-
Notifications
You must be signed in to change notification settings - Fork 118
GRPCRoute Support #1835
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
Merged
Merged
GRPCRoute Support #1835
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6880e82
GRPCRoute Support
ciarams87 80b780a
Add missing unit tests
ciarams87 ea6873c
Add static files for GRPC error pages and locations
ciarams87 842a748
Refactor and dedupe routes
ciarams87 25ac6de
Review feedback
ciarams87 8493f90
Review feedback round 2
ciarams87 60c7dc9
Review feedback round 3
ciarams87 075b6ee
Add names to processHTTPRouteRules
ciarams87 de21059
Add default path with matches are nil
ciarams87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
location @grpc_deadline_exceeded { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 4; | ||
add_header grpc-message 'deadline exceeded'; | ||
return 204; | ||
} | ||
|
||
location @grpc_permission_denied { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 7; | ||
add_header grpc-message 'permission denied'; | ||
return 204; | ||
} | ||
|
||
location @grpc_resource_exhausted { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 8; | ||
add_header grpc-message 'resource exhausted'; | ||
return 204; | ||
} | ||
|
||
location @grpc_unimplemented { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 12; | ||
add_header grpc-message unimplemented; | ||
return 204; | ||
} | ||
|
||
location @grpc_internal { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 13; | ||
add_header grpc-message 'internal error'; | ||
return 204; | ||
} | ||
|
||
location @grpc_unavailable { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 14; | ||
add_header grpc-message unavailable; | ||
return 204; | ||
} | ||
|
||
location @grpc_unauthenticated { | ||
default_type application/grpc; | ||
add_header content-type application/grpc; | ||
add_header grpc-status 16; | ||
add_header grpc-message unauthenticated; | ||
return 204; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
error_page 400 = @grpc_internal; | ||
error_page 401 = @grpc_unauthenticated; | ||
error_page 403 = @grpc_permission_denied; | ||
error_page 404 = @grpc_unimplemented; | ||
error_page 429 = @grpc_unavailable; | ||
error_page 502 = @grpc_unavailable; | ||
error_page 503 = @grpc_unavailable; | ||
error_page 504 = @grpc_unavailable; | ||
error_page 405 = @grpc_internal; | ||
error_page 408 = @grpc_deadline_exceeded; | ||
error_page 413 = @grpc_resource_exhausted; | ||
error_page 414 = @grpc_resource_exhausted; | ||
error_page 415 = @grpc_internal; | ||
error_page 426 = @grpc_internal; | ||
error_page 495 = @grpc_unauthenticated; | ||
error_page 496 = @grpc_unauthenticated; | ||
error_page 497 = @grpc_internal; | ||
error_page 500 = @grpc_internal; | ||
error_page 501 = @grpc_internal; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.