-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pdk) support
kong.response.exit
method for L4 proxy mode
feat(pdk) support `kong.response.exit` method for L4 proxy mode In L4 proxy mode, some of the features in here makes little sense. Such as the JSON encoding support and `headers` argument. Therefore they have been removed. Only `200`, `400`, `403`, `500`, `502` and `503` status codes are supported for L4 proxy mode. Unlike the HTTP counterpart, only bodies of `200` exit status will be send to L4 client as @bungle and @kikito recommended. If status is not `200` then the body is logged inside the Nginx error log instead to avoid confusing the client.
- Loading branch information
Showing
4 changed files
with
253 additions
and
108 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -21,6 +21,7 @@ addons: | |
packages: | ||
- net-tools | ||
- libpcre3-dev | ||
- valgrind | ||
- build-essential | ||
hosts: | ||
- grpcs_1.test | ||
|
This file contains 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.