@@ -572,7 +572,7 @@ one listed below. (`heap.validateSnapshotNodes(...)` is a shortcut for
572
572
573
573
Create a heap dump and an embedder graph copy and validate occurrences.
574
574
575
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
575
+ <!-- eslint-disable no-undef, node-core/required-modules -->
576
576
``` js
577
577
validateSnapshotNodes (' TLSWRAP' , [
578
578
{
@@ -590,7 +590,7 @@ validateSnapshotNodes('TLSWRAP', [
590
590
The http2.js module provides a handful of utilities for creating mock HTTP/2
591
591
frames for testing of HTTP/2 endpoints
592
592
593
- <!-- eslint-disable no-undef, no- unused-vars, node-core/required-modules, strict -->
593
+ <!-- eslint-disable no-unused-vars, node-core/required-modules -->
594
594
``` js
595
595
const http2 = require (' ../common/http2' );
596
596
```
@@ -600,7 +600,7 @@ const http2 = require('../common/http2');
600
600
The ` http2.Frame ` is a base class that creates a ` Buffer ` containing a
601
601
serialized HTTP/2 frame header.
602
602
603
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
603
+ <!-- eslint-disable no-undef, node-core/required-modules -->
604
604
``` js
605
605
// length is a 24-bit unsigned integer
606
606
// type is an 8-bit unsigned integer identifying the frame type
@@ -619,7 +619,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
619
619
The ` http2.DataFrame ` is a subclass of ` http2.Frame ` that serializes a ` DATA `
620
620
frame.
621
621
622
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
622
+ <!-- eslint-disable no-undef, node-core/required-modules -->
623
623
``` js
624
624
// id is the 32-bit stream identifier
625
625
// payload is a Buffer containing the DATA payload
@@ -636,7 +636,7 @@ socket.write(frame.data);
636
636
The ` http2.HeadersFrame ` is a subclass of ` http2.Frame ` that serializes a
637
637
` HEADERS ` frame.
638
638
639
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
639
+ <!-- eslint-disable no-undef, node-core/required-modules -->
640
640
``` js
641
641
// id is the 32-bit stream identifier
642
642
// payload is a Buffer containing the HEADERS payload (see either
@@ -654,7 +654,7 @@ socket.write(frame.data);
654
654
The ` http2.SettingsFrame ` is a subclass of ` http2.Frame ` that serializes an
655
655
empty ` SETTINGS ` frame.
656
656
657
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
657
+ <!-- eslint-disable no-undef, node-core/required-modules -->
658
658
``` js
659
659
// ack is a boolean indicating whether or not to set the ACK flag.
660
660
const frame = new http2.SettingsFrame (ack);
@@ -667,7 +667,7 @@ socket.write(frame.data);
667
667
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
668
668
request headers to be used as the payload of a ` http2.HeadersFrame ` .
669
669
670
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
670
+ <!-- eslint-disable no-undef, node-core/required-modules -->
671
671
``` js
672
672
const frame = new http2.HeadersFrame (1 , http2 .kFakeRequestHeaders , 0 , true );
673
673
@@ -679,7 +679,7 @@ socket.write(frame.data);
679
679
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
680
680
response headers to be used as the payload a ` http2.HeadersFrame ` .
681
681
682
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
682
+ <!-- eslint-disable no-undef, node-core/required-modules -->
683
683
``` js
684
684
const frame = new http2.HeadersFrame (1 , http2 .kFakeResponseHeaders , 0 , true );
685
685
@@ -691,7 +691,7 @@ socket.write(frame.data);
691
691
Set to a ` Buffer ` containing the preamble bytes an HTTP/2 client must send
692
692
upon initial establishment of a connection.
693
693
694
- <!-- eslint-disable no-undef, no-unused-vars, node-core/required-modules, strict -->
694
+ <!-- eslint-disable no-undef, node-core/required-modules -->
695
695
``` js
696
696
socket .write (http2 .kClientMagic );
697
697
```
0 commit comments