@@ -557,10 +557,7 @@ implementation with tests from
557
557
The http2.js module provides a handful of utilities for creating mock HTTP/2
558
558
frames for testing of HTTP/2 endpoints
559
559
560
- <!-- eslint-disable strict -->
561
- <!-- eslint-disable required-modules -->
562
- <!-- eslint-disable no-unused-vars -->
563
- <!-- eslint-disable no-undef -->
560
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
564
561
``` js
565
562
const http2 = require (' ../common/http2' );
566
563
```
@@ -570,10 +567,7 @@ const http2 = require('../common/http2');
570
567
The ` http2.Frame ` is a base class that creates a ` Buffer ` containing a
571
568
serialized HTTP/2 frame header.
572
569
573
- <!-- eslint-disable strict -->
574
- <!-- eslint-disable required-modules -->
575
- <!-- eslint-disable no-unused-vars -->
576
- <!-- eslint-disable no-undef -->
570
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
577
571
``` js
578
572
// length is a 24-bit unsigned integer
579
573
// type is an 8-bit unsigned integer identifying the frame type
@@ -592,10 +586,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
592
586
The ` http2.DataFrame ` is a subclass of ` http2.Frame ` that serializes a ` DATA `
593
587
frame.
594
588
595
- <!-- eslint-disable strict -->
596
- <!-- eslint-disable required-modules -->
597
- <!-- eslint-disable no-unused-vars -->
598
- <!-- eslint-disable no-undef -->
589
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
599
590
``` js
600
591
// id is the 32-bit stream identifier
601
592
// payload is a Buffer containing the DATA payload
@@ -612,10 +603,7 @@ socket.write(frame.data);
612
603
The ` http2.HeadersFrame ` is a subclass of ` http2.Frame ` that serializes a
613
604
` HEADERS ` frame.
614
605
615
- <!-- eslint-disable strict -->
616
- <!-- eslint-disable required-modules -->
617
- <!-- eslint-disable no-unused-vars -->
618
- <!-- eslint-disable no-undef -->
606
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
619
607
``` js
620
608
// id is the 32-bit stream identifier
621
609
// payload is a Buffer containing the HEADERS payload (see either
@@ -634,10 +622,7 @@ socket.write(frame.data);
634
622
The ` http2.SettingsFrame ` is a subclass of ` http2.Frame ` that serializes an
635
623
empty ` SETTINGS ` frame.
636
624
637
- <!-- eslint-disable strict -->
638
- <!-- eslint-disable required-modules -->
639
- <!-- eslint-disable no-unused-vars -->
640
- <!-- eslint-disable no-undef -->
625
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
641
626
``` js
642
627
// ack is a boolean indicating whether or not to set the ACK flag.
643
628
const frame = new http2.SettingsFrame (ack);
@@ -650,10 +635,7 @@ socket.write(frame.data);
650
635
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
651
636
request headers to be used as the payload of a ` http2.HeadersFrame ` .
652
637
653
- <!-- eslint-disable strict -->
654
- <!-- eslint-disable required-modules -->
655
- <!-- eslint-disable no-unused-vars -->
656
- <!-- eslint-disable no-undef -->
638
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
657
639
``` js
658
640
const frame = new http2.HeadersFrame (1 , http2 .kFakeRequestHeaders , 0 , true );
659
641
@@ -665,10 +647,7 @@ socket.write(frame.data);
665
647
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
666
648
response headers to be used as the payload a ` http2.HeadersFrame ` .
667
649
668
- <!-- eslint-disable strict -->
669
- <!-- eslint-disable required-modules -->
670
- <!-- eslint-disable no-unused-vars -->
671
- <!-- eslint-disable no-undef -->
650
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
672
651
``` js
673
652
const frame = new http2.HeadersFrame (1 , http2 .kFakeResponseHeaders , 0 , true );
674
653
@@ -680,10 +659,7 @@ socket.write(frame.data);
680
659
Set to a ` Buffer ` containing the preamble bytes an HTTP/2 client must send
681
660
upon initial establishment of a connection.
682
661
683
- <!-- eslint-disable strict -->
684
- <!-- eslint-disable required-modules -->
685
- <!-- eslint-disable no-unused-vars -->
686
- <!-- eslint-disable no-undef -->
662
+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
687
663
``` js
688
664
socket .write (http2 .kClientMagic );
689
665
```
0 commit comments