Permalink
Browse files

add getHeader documentation

  • Loading branch information...
jeremydaly committed Apr 23, 2018
1 parent d205646 commit 41ff5951e14961f57299588753c0d89f0d80d225
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
@@ -261,6 +261,9 @@ api.get('/users', function(req,res) {
})
```

### getHeader([field])
Retrieve the current header object or pass the optional `field` parameter and retrieve a specific header value. `field` is case insensitive.

### send(body)
The `send` methods triggers the API to return data to the API Gateway. The `send` method accepts one parameter and sends the contents through as is, e.g. as an object, string, integer, etc. AWS Gateway expects a string, so the data should be converted accordingly.

0 comments on commit 41ff595

Please sign in to comment.