@@ -528,10 +528,7 @@ Returns the result of
528
528
The http2.js module provides a handful of utilities for creating mock HTTP/2
529
529
frames for testing of HTTP/2 endpoints
530
530
531
- <!-- eslint-disable strict -->
532
- <!-- eslint-disable required-modules -->
533
- <!-- eslint-disable no-unused-vars -->
534
- <!-- eslint-disable no-undef -->
531
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
535
532
``` js
536
533
const http2 = require (' ../common/http2' );
537
534
```
@@ -541,10 +538,7 @@ const http2 = require('../common/http2');
541
538
The ` http2.Frame ` is a base class that creates a ` Buffer ` containing a
542
539
serialized HTTP/2 frame header.
543
540
544
- <!-- eslint-disable strict -->
545
- <!-- eslint-disable required-modules -->
546
- <!-- eslint-disable no-unused-vars -->
547
- <!-- eslint-disable no-undef -->
541
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
548
542
``` js
549
543
// length is a 24-bit unsigned integer
550
544
// type is an 8-bit unsigned integer identifying the frame type
@@ -563,10 +557,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
563
557
The ` http2.DataFrame ` is a subclass of ` http2.Frame ` that serializes a ` DATA `
564
558
frame.
565
559
566
- <!-- eslint-disable strict -->
567
- <!-- eslint-disable required-modules -->
568
- <!-- eslint-disable no-unused-vars -->
569
- <!-- eslint-disable no-undef -->
560
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
570
561
``` js
571
562
// id is the 32-bit stream identifier
572
563
// payload is a Buffer containing the DATA payload
@@ -583,10 +574,7 @@ socket.write(frame.data);
583
574
The ` http2.HeadersFrame ` is a subclass of ` http2.Frame ` that serializes a
584
575
` HEADERS ` frame.
585
576
586
- <!-- eslint-disable strict -->
587
- <!-- eslint-disable required-modules -->
588
- <!-- eslint-disable no-unused-vars -->
589
- <!-- eslint-disable no-undef -->
577
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
590
578
``` js
591
579
// id is the 32-bit stream identifier
592
580
// payload is a Buffer containing the HEADERS payload (see either
@@ -604,10 +592,7 @@ socket.write(frame.data);
604
592
The ` http2.SettingsFrame ` is a subclass of ` http2.Frame ` that serializes an
605
593
empty ` SETTINGS ` frame.
606
594
607
- <!-- eslint-disable strict -->
608
- <!-- eslint-disable required-modules -->
609
- <!-- eslint-disable no-unused-vars -->
610
- <!-- eslint-disable no-undef -->
595
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
611
596
``` js
612
597
// ack is a boolean indicating whether or not to set the ACK flag.
613
598
const frame = new http2.SettingsFrame (ack);
@@ -620,10 +605,7 @@ socket.write(frame.data);
620
605
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
621
606
request headers to be used as the payload of a ` http2.HeadersFrame ` .
622
607
623
- <!-- eslint-disable strict -->
624
- <!-- eslint-disable required-modules -->
625
- <!-- eslint-disable no-unused-vars -->
626
- <!-- eslint-disable no-undef -->
608
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
627
609
``` js
628
610
const frame = new http2.HeadersFrame (1 , http2 .kFakeRequestHeaders , 0 , true );
629
611
@@ -635,10 +617,7 @@ socket.write(frame.data);
635
617
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
636
618
response headers to be used as the payload a ` http2.HeadersFrame ` .
637
619
638
- <!-- eslint-disable strict -->
639
- <!-- eslint-disable required-modules -->
640
- <!-- eslint-disable no-unused-vars -->
641
- <!-- eslint-disable no-undef -->
620
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
642
621
``` js
643
622
const frame = new http2.HeadersFrame (1 , http2 .kFakeResponseHeaders , 0 , true );
644
623
@@ -650,10 +629,7 @@ socket.write(frame.data);
650
629
Set to a ` Buffer ` containing the preamble bytes an HTTP/2 client must send
651
630
upon initial establishment of a connection.
652
631
653
- <!-- eslint-disable strict -->
654
- <!-- eslint-disable required-modules -->
655
- <!-- eslint-disable no-unused-vars -->
656
- <!-- eslint-disable no-undef -->
632
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
657
633
``` js
658
634
socket .write (http2 .kClientMagic );
659
635
```
0 commit comments