@@ -52,7 +52,7 @@ per connection (in the case of keep-alive connections).
5252
5353### Event: 'checkContinue'
5454
55- ` function (request, response) {} `
55+ ` function (request, response) { } `
5656
5757Emitted each time a request with an http Expect: 100-continue is received.
5858If this event isn't listened for, the server will automatically respond
@@ -68,7 +68,7 @@ not be emitted.
6868
6969### Event: 'upgrade'
7070
71- ` function (request, socket, head) `
71+ ` function (request, socket, head) { } `
7272
7373Emitted each time a client requests a http upgrade. If this event isn't
7474listened for, then clients requesting an upgrade will have their connections
@@ -84,7 +84,7 @@ sent to the server on that socket.
8484
8585### Event: 'clientError'
8686
87- ` function (exception) {} `
87+ ` function (exception) { } `
8888
8989If a client connection emits an 'error' event - it will forwarded here.
9090
@@ -476,7 +476,7 @@ agent. The `http.getAgent()` function allows you to access the agents.
476476
477477### Event: 'upgrade'
478478
479- ` function (response, socket, head) `
479+ ` function (response, socket, head) { } `
480480
481481Emitted each time a server responds to a request with an upgrade. If this
482482event isn't being listened for, clients receiving an upgrade header will have
@@ -530,14 +530,6 @@ A client server pair that show you how to listen for the `upgrade` event using `
530530 });
531531
532532
533- ### Event: 'continue'
534-
535- ` function () `
536-
537- Emitted when the server sends a '100 Continue' HTTP response, usually because
538- the request contained 'Expect: 100-continue'. This is an instruction that
539- the client should send the request body.
540-
541533### agent.maxSockets
542534
543535By default set to 5. Determines how many concurrent sockets the agent can have open.
@@ -593,6 +585,14 @@ This is a `Writable Stream`.
593585
594586This is an ` EventEmitter ` with the following events:
595587
588+ ### Event: 'continue'
589+
590+ ` function () { } `
591+
592+ Emitted when the server sends a '100 Continue' HTTP response, usually because
593+ the request contained 'Expect: 100-continue'. This is an instruction that
594+ the client should send the request body.
595+
596596### Event 'response'
597597
598598` function (response) { } `
@@ -639,18 +639,27 @@ The response implements the `Readable Stream` interface.
639639
640640### Event: 'data'
641641
642- ` function (chunk) {} `
642+ ` function (chunk) { } `
643643
644644Emitted when a piece of the message body is received.
645645
646646
647647### Event: 'end'
648648
649- ` function () {} `
649+ ` function () { } `
650650
651651Emitted exactly once for each message. No arguments. After
652652emitted no other events will be emitted on the response.
653653
654+ ### Event: 'close'
655+
656+ ` function (err) { } `
657+
658+ Indicates that the underlaying connection was terminated before
659+ ` end ` event was emitted.
660+ See [ http.ServerRequest] ( #http.ServerRequest ) 's ` 'close' ` event for more
661+ information.
662+
654663### response.statusCode
655664
656665The 3-digit HTTP response status code. E.G. ` 404 ` .
0 commit comments