Skip to content

Commit

Permalink
docs: response.set(fields) won't overwrites previous header fields(ko…
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade authored and kiku-jw committed Feb 26, 2019
1 parent 8273837 commit 63e4e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/response.md
Expand Up @@ -193,6 +193,8 @@ ctx.set({
});
```

This delegates to [setHeader](https://nodejs.org/dist/latest/docs/api/http.html#http_request_setheader_name_value) which sets or updates headers by specified keys and doesn't reset the entire header.

### response.remove(field)

Remove header `field`.
Expand Down

0 comments on commit 63e4e0e

Please sign in to comment.