Skip to content

Commit f90e825

Browse files
doug-wadedead-horse
authored andcommitted
docs: response.set(fields) won't overwrites previous header fields(#1282)
1 parent fc93c05 commit f90e825

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/response.md

+2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ ctx.set({
193193
});
194194
```
195195

196+
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.
197+
196198
### response.remove(field)
197199

198200
Remove header `field`.

0 commit comments

Comments
 (0)