mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Removes "type" from json format. Was pointless. (#783)
This commit is contained in:
committed by
Reed Allman
parent
cebae57007
commit
575e1d3d0c
@@ -84,7 +84,6 @@ Internally functions receive data in the example format below:
|
||||
{
|
||||
"call_id": "123",
|
||||
"content_type": "application/json",
|
||||
"type":"sync",
|
||||
"deadline":"2018-01-30T16:52:39.786Z",
|
||||
"body": "{\"some\":\"input\"}",
|
||||
"protocol": {
|
||||
@@ -103,9 +102,9 @@ BLANK LINE
|
||||
}
|
||||
```
|
||||
|
||||
* body - the main contents. If HTTP is the protocol, this would be the request body.
|
||||
* call_id - the unique ID for the call.
|
||||
* content_type - format of the `body` parameter.
|
||||
* type - whether the call was sync or async.
|
||||
* deadline - a time limit for the call, based on function timeout.
|
||||
* 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**.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user