@@ -509,10 +509,7 @@ Returns the result of
509509The http2.js module provides a handful of utilities for creating mock HTTP/2
510510frames for testing of HTTP/2 endpoints
511511
512- <!-- eslint-disable strict -->
513- <!-- eslint-disable required-modules -->
514- <!-- eslint-disable no-unused-vars -->
515- <!-- eslint-disable no-undef -->
512+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
516513```js
517514const http2 = require('../common/http2');
518515```
@@ -522,10 +519,7 @@ const http2 = require('../common/http2');
522519The `http2.Frame` is a base class that creates a `Buffer` containing a
523520serialized HTTP/2 frame header.
524521
525- <!-- eslint-disable strict -->
526- <!-- eslint-disable required-modules -->
527- <!-- eslint-disable no-unused-vars -->
528- <!-- eslint-disable no-undef -->
522+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
529523```js
530524// length is a 24-bit unsigned integer
531525// type is an 8-bit unsigned integer identifying the frame type
@@ -544,10 +538,7 @@ The serialized `Buffer` may be retrieved using the `frame.data` property.
544538The `http2.DataFrame` is a subclass of `http2.Frame` that serializes a `DATA`
545539frame.
546540
547- <!-- eslint-disable strict -->
548- <!-- eslint-disable required-modules -->
549- <!-- eslint-disable no-unused-vars -->
550- <!-- eslint-disable no-undef -->
541+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
551542```js
552543// id is the 32-bit stream identifier
553544// payload is a Buffer containing the DATA payload
@@ -564,10 +555,7 @@ socket.write(frame.data);
564555The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a
565556`HEADERS` frame.
566557
567- <!-- eslint-disable strict -->
568- <!-- eslint-disable required-modules -->
569- <!-- eslint-disable no-unused-vars -->
570- <!-- eslint-disable no-undef -->
558+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
571559```js
572560// id is the 32-bit stream identifier
573561// payload is a Buffer containing the HEADERS payload (see either
@@ -585,10 +573,7 @@ socket.write(frame.data);
585573The `http2.SettingsFrame` is a subclass of `http2.Frame` that serializes an
586574empty `SETTINGS` frame.
587575
588- <!-- eslint-disable strict -->
589- <!-- eslint-disable required-modules -->
590- <!-- eslint-disable no-unused-vars -->
591- <!-- eslint-disable no-undef -->
576+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
592577```js
593578// ack is a boolean indicating whether or not to set the ACK flag.
594579const frame = new http2.SettingsFrame(ack);
@@ -601,10 +586,7 @@ socket.write(frame.data);
601586Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
602587request headers to be used as the payload of a `http2.HeadersFrame`.
603588
604- <!-- eslint-disable strict -->
605- <!-- eslint-disable required-modules -->
606- <!-- eslint-disable no-unused-vars -->
607- <!-- eslint-disable no-undef -->
589+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
608590```js
609591const frame = new http2.HeadersFrame(1, http2.kFakeRequestHeaders, 0, true);
610592
@@ -616,10 +598,7 @@ socket.write(frame.data);
616598Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2
617599response headers to be used as the payload a `http2.HeadersFrame`.
618600
619- <!-- eslint-disable strict -->
620- <!-- eslint-disable required-modules -->
621- <!-- eslint-disable no-unused-vars -->
622- <!-- eslint-disable no-undef -->
601+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
623602```js
624603const frame = new http2.HeadersFrame(1, http2.kFakeResponseHeaders, 0, true);
625604
@@ -631,10 +610,7 @@ socket.write(frame.data);
631610Set to a `Buffer` containing the preamble bytes an HTTP/2 client must send
632611upon initial establishment of a connection.
633612
634- <!-- eslint-disable strict -->
635- <!-- eslint-disable required-modules -->
636- <!-- eslint-disable no-unused-vars -->
637- <!-- eslint-disable no-undef -->
613+ <!-- eslint-disable no-undef, no-unused-vars, required-modules, strict -->
638614```js
639615socket.write(http2.kClientMagic);
640616```
0 commit comments