Skip to content

Commit aace601

Browse files
committed
docs: add docs for dc http client
1 parent ba8f093 commit aace601

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

doc/api/diagnostics_channel.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,13 +1576,36 @@ 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` {Buffer|string|Uint8Array}
1583+
* `encoding` {string|null|undefined}
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, if a request body
1592+
was written.
1593+
15791594
##### Event: `'http.client.request.error'`
15801595

15811596
* `request` {http.ClientRequest}
15821597
* `error` {Error}
15831598

15841599
Emitted when an error occurs during a client request.
15851600

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

15881611
* `request` {http.ClientRequest}

0 commit comments

Comments
 (0)