fn: input doc update for hot http/json functions (#659)

This commit is contained in:
Tolga Ceylan
2018-01-08 14:56:05 -08:00
committed by Reed Allman
parent acfa02a249
commit 0274b5cb65

View File

@@ -58,7 +58,7 @@ Content-Length: 11
hello world
```
The header keys and values would be populated with information about the function call such as the request URL and query parameters.
Request HTTP headers contain Default format environment variables listed in [Inputs](writing.md)
`Content-Length` is determined by the [Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.3) header, which is mandatory both for input and output. It is used by Functions to know when stop writing to STDIN and reading from STDOUT.
@@ -116,6 +116,8 @@ BLANK LINE
* content_type - format of the `body` parameter.
* protocol - arbitrary map of protocol specific data. The above example shows what the HTTP protocol handler passes in. Subject to change and reduces reusability of your functions. **USE AT YOUR OWN RISK**.
Under `protocol`, `headers` contain Default format environment variables listed in [Inputs](writing.md)
Each request will be separated by a blank line.
#### Output