Skip to content

Commit

Permalink
add getHeader documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Apr 23, 2018
1 parent d205646 commit 41ff595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -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.

Expand Down

0 comments on commit 41ff595

Please sign in to comment.