Revisiting request body processing

This commit is contained in:
Denis Makogon
2017-10-01 14:12:38 +03:00
parent 1f589d641e
commit c2ee67fb21
12 changed files with 86 additions and 45 deletions

View File

@@ -1,25 +0,0 @@
# Hot Function Example
This is an example of a hot function. The [hot function documentation](/docs/hot-functions.md) contains an analysis of how this example works.
### How to run the example
Install the CLI tool, start a Fn server and run `docker login` to login to DockerHub. See the [front page](/README.md) for instructions.
Set your Docker Hub username
```sh
export FN_REGISTRY=<DOCKERHUB_USERNAME>
```
Build and deploy the function to the Fn server (default localhost:8080)
```sh
fn deploy --app hot-app
```
Now call your function:
```sh
curl -X POST -d "World" http://localhost:8080/r/hot-app/hotfn-go
```

View File

@@ -1,6 +0,0 @@
name: hotfunction-http
version: 0.0.10
runtime: go
entrypoint: ./func
format: http
path: /hotfn-go