sails
Version:
API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)
36 lines (16 loc) • 525 B
Markdown
# `res.get()`
Returns the current value of the specified response header (`header`).
### Usage
```usage
res.get(header);
```
### Example
```javascript
res.get('Content-Type');
// -> "text/plain"
```
### Notes
>+ The `header` argument is case-insensitive.
>+ Response headers can be changed up until the response is sent. See [`res.set()`](https://sailsjs.com/documentation/reference/response-res/res-set) for details.
<docmeta name="displayName" value="res.get()">
<docmeta name="pageType" value="method">