summaryrefslogtreecommitdiffstatshomepage
path: root/node_modules/undici/docs
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-11 19:00:29 +0500
committerEgor Tensin <egor@tensin.name>2026-10-11 19:00:29 +0500
commit20cbf953d092f8a3d5d4126caea9c3c90b1d6f93 (patch)
treef2f5e770657d5252ef02b0aa417fc03eb9ca83c0 /node_modules/undici/docs
parentupdate my email (diff)
downloadcleanup-path-20cbf953d092f8a3d5d4126caea9c3c90b1d6f93.tar.gz
cleanup-path-20cbf953d092f8a3d5d4126caea9c3c90b1d6f93.zip
bump dependencies
Diffstat (limited to 'node_modules/undici/docs')
-rw-r--r--node_modules/undici/docs/docs/api/DiagnosticsChannel.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/undici/docs/docs/api/DiagnosticsChannel.md b/node_modules/undici/docs/docs/api/DiagnosticsChannel.md
index 099c072..aefb100 100644
--- a/node_modules/undici/docs/docs/api/DiagnosticsChannel.md
+++ b/node_modules/undici/docs/docs/api/DiagnosticsChannel.md
@@ -40,7 +40,8 @@ diagnosticsChannel.channel('undici:request:bodySent').subscribe(({ request }) =>
## `undici:request:headers`
-This message is published after the response headers have been received, i.e. the response has been completed.
+This message is published after the response headers have been received. This includes a successful CONNECT or
+protocol upgrade response.
```js
import diagnosticsChannel from 'diagnostics_channel'
@@ -57,6 +58,7 @@ diagnosticsChannel.channel('undici:request:headers').subscribe(({ request, respo
## `undici:request:trailers`
This message is published after the response body and trailers have been received, i.e. the response has been completed.
+After an upgraded socket is passed to the request handler, this message is published with an empty `trailers` array.
```js
import diagnosticsChannel from 'diagnostics_channel'