Skip to content

Commit 7d33079

Browse files
authored
Merge pull request #1 from GrinZero/codex/update-documentation-for-new-dcs
doc: add HTTP body chunk events to diagnostics_channel docs
2 parents 3734609 + fec4e0d commit 7d33079

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

doc/api/diagnostics_channel.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,13 +1576,35 @@ Unlike `http.client.request.start`, this event is emitted before the request has
15761576

15771577
Emitted when client starts a request.
15781578

1579+
##### Event: `'http.client.request.bodyChunkSent'`
1580+
1581+
* `request` {http.ClientRequest}
1582+
* `chunk` {string|Buffer|TypedArray|DataView}
1583+
* `encoding` {string|null}
1584+
1585+
Emitted when a chunk of the client request body is being sent.
1586+
1587+
##### Event: `'http.client.request.bodySent'`
1588+
1589+
* `request` {http.ClientRequest}
1590+
1591+
Emitted after the client request body has been fully sent.
1592+
15791593
##### Event: `'http.client.request.error'`
15801594

15811595
* `request` {http.ClientRequest}
15821596
* `error` {Error}
15831597

15841598
Emitted when an error occurs during a client request.
15851599

1600+
##### Event: `'http.client.response.bodyChunkReceived'`
1601+
1602+
* `request` {http.ClientRequest}
1603+
* `response` {http.IncomingMessage}
1604+
* `chunk` {Buffer}
1605+
1606+
Emitted when a chunk of the client response body is received.
1607+
15861608
##### Event: `'http.client.response.finish'`
15871609

15881610
* `request` {http.ClientRequest}

0 commit comments

Comments
 (0)