Skip to content

Commit

Permalink
docs: response.set(fields) won't overwrites previous header fields(#1282
Browse files Browse the repository at this point in the history
)
  • Loading branch information
doug-wade authored and dead-horse committed Dec 7, 2018
1 parent fc93c05 commit f90e825
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 f90e825

Please sign in to comment.