@@ -386,7 +386,7 @@ thread.
386
386
The ` ArrayStream ` module provides a simple ` Stream ` that pushes elements from
387
387
a given array.
388
388
389
- <!-- eslint-disable no-undef, node-core/required-modules -->
389
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
390
390
``` js
391
391
const ArrayStream = require (' ../common/arraystream' );
392
392
const stream = new ArrayStream ();
@@ -402,7 +402,7 @@ require a particular action to be taken after a given number of completed
402
402
tasks (for instance, shutting down an HTTP server after a specific number of
403
403
requests). The Countdown will fail the test if the remainder did not reach 0.
404
404
405
- <!-- eslint-disable strict, node-core/required-modules -->
405
+ <!-- eslint-disable strict, node-core/require-common-first, node-core/ required-modules -->
406
406
``` js
407
407
const Countdown = require (' ../common/countdown' );
408
408
@@ -574,7 +574,7 @@ one listed below. (`heap.validateSnapshotNodes(...)` is a shortcut for
574
574
575
575
Create a heap dump and an embedder graph copy and validate occurrences.
576
576
577
- <!-- eslint-disable no-undef, node-core/required-modules -->
577
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
578
578
``` js
579
579
validateSnapshotNodes (' TLSWRAP' , [
580
580
{
@@ -592,7 +592,7 @@ validateSnapshotNodes('TLSWRAP', [
592
592
The ` hijackstdio ` module provides utility functions for temporarily redirecting
593
593
` stdout ` and ` stderr ` output.
594
594
595
- <!-- eslint-disable no-undef, node-core/required-modules -->
595
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
596
596
``` js
597
597
const { hijackStdout , restoreStdout } = require (' ../common/hijackstdio' );
598
598
@@ -638,7 +638,7 @@ original state after calling [`hijackstdio.hijackStdOut()`][].
638
638
The http2.js module provides a handful of utilities for creating mock HTTP/2
639
639
frames for testing of HTTP/2 endpoints
640
640
641
- <!-- eslint-disable no-unused-vars, node-core/required-modules -->
641
+ <!-- eslint-disable no-unused-vars, node-core/require-common-first, node-core/ required-modules -->
642
642
``` js
643
643
const http2 = require (' ../common/http2' );
644
644
```
@@ -648,7 +648,7 @@ const http2 = require('../common/http2');
648
648
The ` http2.Frame ` is a base class that creates a ` Buffer ` containing a
649
649
serialized HTTP/2 frame header.
650
650
651
- <!-- eslint-disable no-undef, node-core/required-modules -->
651
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
652
652
``` js
653
653
// length is a 24-bit unsigned integer
654
654
// type is an 8-bit unsigned integer identifying the frame type
@@ -667,7 +667,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
667
667
The ` http2.DataFrame ` is a subclass of ` http2.Frame ` that serializes a ` DATA `
668
668
frame.
669
669
670
- <!-- eslint-disable no-undef, node-core/required-modules -->
670
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
671
671
``` js
672
672
// id is the 32-bit stream identifier
673
673
// payload is a Buffer containing the DATA payload
@@ -684,7 +684,7 @@ socket.write(frame.data);
684
684
The ` http2.HeadersFrame ` is a subclass of ` http2.Frame ` that serializes a
685
685
` HEADERS ` frame.
686
686
687
- <!-- eslint-disable no-undef, node-core/required-modules -->
687
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
688
688
``` js
689
689
// id is the 32-bit stream identifier
690
690
// payload is a Buffer containing the HEADERS payload (see either
@@ -702,7 +702,7 @@ socket.write(frame.data);
702
702
The ` http2.SettingsFrame ` is a subclass of ` http2.Frame ` that serializes an
703
703
empty ` SETTINGS ` frame.
704
704
705
- <!-- eslint-disable no-undef, node-core/required-modules -->
705
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
706
706
``` js
707
707
// ack is a boolean indicating whether or not to set the ACK flag.
708
708
const frame = new http2.SettingsFrame (ack);
@@ -715,7 +715,7 @@ socket.write(frame.data);
715
715
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
716
716
request headers to be used as the payload of a ` http2.HeadersFrame ` .
717
717
718
- <!-- eslint-disable no-undef, node-core/required-modules -->
718
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
719
719
``` js
720
720
const frame = new http2.HeadersFrame (1 , http2 .kFakeRequestHeaders , 0 , true );
721
721
@@ -727,7 +727,7 @@ socket.write(frame.data);
727
727
Set to a ` Buffer ` instance that contains a minimal set of serialized HTTP/2
728
728
response headers to be used as the payload a ` http2.HeadersFrame ` .
729
729
730
- <!-- eslint-disable no-undef, node-core/required-modules -->
730
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
731
731
``` js
732
732
const frame = new http2.HeadersFrame (1 , http2 .kFakeResponseHeaders , 0 , true );
733
733
@@ -739,7 +739,7 @@ socket.write(frame.data);
739
739
Set to a ` Buffer ` containing the preamble bytes an HTTP/2 client must send
740
740
upon initial establishment of a connection.
741
741
742
- <!-- eslint-disable no-undef, node-core/required-modules -->
742
+ <!-- eslint-disable no-undef, node-core/require-common-first, node-core/ required-modules -->
743
743
``` js
744
744
socket .write (http2 .kClientMagic );
745
745
```
0 commit comments