We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f50c4 commit da5c38dCopy full SHA for da5c38d
docs/docs/api/DiagnosticsChannel.md
@@ -19,7 +19,7 @@ diagnosticsChannel.channel('undici:request:create').subscribe(({ request }) => {
19
console.log('completed', request.completed)
20
console.log('method', request.method)
21
console.log('path', request.path)
22
- console.log('headers') // array of strings, e.g: ['foo', 'bar']
+ console.log('headers', request.headers) // array of strings, e.g: ['foo', 'bar']
23
request.addHeader('hello', 'world')
24
console.log('headers', request.headers) // e.g. ['foo', 'bar', 'hello', 'world']
25
})
0 commit comments