docs: response.set(fields) won't overwrites previous header fields(#1282)
This commit is contained in:
parent
fc93c05f68
commit
f90e825da9
1 changed files with 2 additions and 0 deletions
|
@ -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`.
|
||||||
|
|
Loading…
Reference in a new issue