forked from zalando/skipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements lua scripting improvements
* Updates gopher-lua dependency to fix [checkptr: unsafe pointer arithmetic](yuin/gopher-lua#254) * Adds context path_param projection as table * Adds request url_query projection as table * Adds request url_path getter and setter * Adds response status_code getter and setter * Implements header, path_param and url_query iteration * Headers and url query return nil on missing key * Passes indexed script params along with key-values * Uses proper log module * Makes 'print' builtin write into log * Uses lua's RaiseError for error handling * Returns less results instead of pushing lua.LNil * Updates documentation and tests See script_test.go for usage examples. Signed-off-by: Alexander Yastrebov <[email protected]>
- Loading branch information
1 parent
da2ab78
commit 5042015
Showing
11 changed files
with
799 additions
and
406 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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.