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

This commit is contained in:
Douglas Wade 2018-12-06 23:24:51 -08:00 committed by Yiyu He
parent fc93c05f68
commit f90e825da9

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) ### response.remove(field)
Remove header `field`. Remove header `field`.