You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Functions can be turned into "*web actions*" which return HTTP content without use of an API Gateway. This feature is enabled by setting an annotation (`web-export`) in the configuration file.
@@ -728,12 +726,12 @@ functions:
728
726
Functions with this annotation can be invoked through a URL template with the following parameters.
- *APIHOST* - platform endpoint e.g. *openwhisk.ng.bluemix.net.*
735
733
- *USER_NAMESPACE* - this must be an explicit namespace and cannot use the default namespace (_).
736
-
- PACKAGE - action package or `default`.
734
+
- *PACKAGE* - action package or `default`.
737
735
- *ACTION_NAME* - default form `${servicename}-${space}-${name}`.
738
736
- *TYPE* - `.json`, `.html`, `.text` or `.http`.
739
737
@@ -769,13 +767,13 @@ function main() {
769
767
770
768
Functions can access request parameters using the following environment variables.
771
769
772
-
1. `**__ow_meta_verb:**` the HTTP method of the request.
773
-
2. `**__ow_meta_headers:**` the request headers.
774
-
3. `**__ow_meta_path:**` the unmatched path of the request.
775
-
776
-
Full details on this new feature are available in this [blog post](https://medium.com/openwhisk/serverless-http-handlers-with-openwhisk-90a986cc7cdd#.2x09176m8).
770
+
1. `__ow_method` - HTTP method of the request.
771
+
2. `__ow_headers` - HTTP request headers.
772
+
3. `__ow_path` - Unmatched URL path of the request.
773
+
4. `__ow_body` - Body entity from request.
774
+
5. `__ow_query` - Query parameters from the request.
777
775
778
-
_**IMPORTANT: [Web Actions](https://github.com/openwhisk/openwhisk/blob/master/docs/actions.md) is currently experimental and may be subject to breaking changes.**_
776
+
**Full details on this feature are available in this [here](https://github.com/apache/incubator-openwhisk/blob/master/docs/webactions.md).**
0 commit comments