@@ -298,7 +298,7 @@ added: v0.7.0
298
298
* ` head ` {Buffer}
299
299
300
300
Emitted each time a server responds to a request with a ` CONNECT ` method. If this
301
- event isn't being listened for, clients receiving a ` CONNECT ` method will have
301
+ event is not being listened for, clients receiving a ` CONNECT ` method will have
302
302
their connections closed.
303
303
304
304
A client and server pair that shows you how to listen for the ` 'connect' ` event:
@@ -396,7 +396,7 @@ added: v0.1.94
396
396
* ` head ` {Buffer}
397
397
398
398
Emitted each time a server responds to a request with an upgrade. If this
399
- event isn't being listened for, clients receiving an upgrade header will have
399
+ event is not being listened for, clients receiving an upgrade header will have
400
400
their connections closed.
401
401
402
402
A client server pair that show you how to listen for the ` 'upgrade' ` event.
@@ -481,7 +481,7 @@ call `request.end()` or write the first chunk of request data. It then tries
481
481
hard to pack the request headers and data into a single TCP packet.
482
482
483
483
That's usually what you want (it saves a TCP round-trip) but not when the first
484
- data isn't sent until possibly much later. ` request.flushHeaders() ` lets you bypass
484
+ data is not sent until possibly much later. ` request.flushHeaders() ` lets you bypass
485
485
the optimization and kickstart the request.
486
486
487
487
### request.setNoDelay([ noDelay] )
@@ -557,7 +557,7 @@ added: v0.3.0
557
557
* ` response ` {http.ServerResponse}
558
558
559
559
Emitted each time a request with an HTTP ` Expect: 100-continue ` is received.
560
- If this event isn't listened for, the server will automatically respond
560
+ If this event is not listened for, the server will automatically respond
561
561
with a ` 100 Continue ` as appropriate.
562
562
563
563
Handling this event involves calling [ ` response.writeContinue() ` ] [ ] if the client
@@ -577,7 +577,7 @@ added: v5.5.0
577
577
* ` response ` {http.ServerResponse}
578
578
579
579
Emitted each time a request with an HTTP ` Expect ` header is received, where the
580
- value is not ` 100-continue ` . If this event isn't listened for, the server will
580
+ value is not ` 100-continue ` . If this event is not listened for, the server will
581
581
automatically respond with a ` 417 Expectation Failed ` as appropriate.
582
582
583
583
Note that when this event is emitted and handled, the [ ` 'request' ` ] [ ] event will
@@ -634,8 +634,8 @@ added: v0.7.0
634
634
* ` socket ` {net.Socket} Network socket between the server and client
635
635
* ` head ` {Buffer} The first packet of the tunneling stream (may be empty)
636
636
637
- Emitted each time a client requests an HTTP ` CONNECT ` method. If this event isn't
638
- listened for, then clients requesting a ` CONNECT ` method will have their
637
+ Emitted each time a client requests an HTTP ` CONNECT ` method. If this event is
638
+ not listened for, then clients requesting a ` CONNECT ` method will have their
639
639
connections closed.
640
640
641
641
After this event is emitted, the request's socket will not have a ` 'data' `
@@ -676,7 +676,7 @@ added: v0.1.94
676
676
* ` socket ` {net.Socket} Network socket between the server and client
677
677
* ` head ` {Buffer} The first packet of the upgraded stream (may be empty)
678
678
679
- Emitted each time a client requests an HTTP upgrade. If this event isn't
679
+ Emitted each time a client requests an HTTP upgrade. If this event is not
680
680
listened for, then clients requesting an upgrade will have their connections
681
681
closed.
682
682
0 commit comments