mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Fix run env vars passed in via command line to test locally and updated docs to match.
This commit is contained in:
committed by
Reed Allman
parent
7b408468fa
commit
af918fdfe9
@@ -32,10 +32,12 @@ To read in the function body, just read from STDIN.
|
||||
You will also have access to a set of environment variables.
|
||||
|
||||
* REQUEST_URL - the full URL for the request
|
||||
* ROUTE - the matched route
|
||||
* METHOD - the HTTP method for the request
|
||||
* APP_NAME - the name of the application that matched this route, eg: `myapp`
|
||||
* ROUTE - the matched route, eg: `/hello`
|
||||
* METHOD - the HTTP method for the request, eg: `GET` or `POST`
|
||||
* HEADER_X - the HTTP headers that were set for this request. Replace X with the upper cased name of the header and replace dashes in the header with underscores.
|
||||
* X - any configuration values you've set for the Application or the Route. Replace X with the upper cased name of the config variable you set. Ex: `minio_secret=secret` will be exposed via MINIO_SECRET env var
|
||||
* X - any [configuration values](https://gitlab.oracledx.com/odx/functions/blob/master/fn/README.md#application-level-configuration) you've set
|
||||
for the Application or the Route. Replace X with the upper cased name of the config variable you set. Ex: `minio_secret=secret` will be exposed via MINIO_SECRET env var.
|
||||
|
||||
Warning: these may change before release.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user