docs: response.set(fields) won't overwrites previous header fields(#1282)

master
Douglas Wade 2018-12-06 23:24:51 -08:00 committed by Yiyu He
parent fc93c05f68
commit f90e825da9
1 changed files with 2 additions and 0 deletions

View File

@ -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`.