| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e9de5a9 commit 9404573
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -509,10 +509,7 @@ Returns the result of | |||
| 509 | 509 | The http2.js module provides a handful of utilities for creating mock HTTP/2 | |
| 510 | 510 | frames for testing of HTTP/2 endpoints | |
| 511 | 511 | ||
| 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 --> | ||
| 516 | 513 | ```js | |
| 517 | 514 | const http2 = require('../common/http2'); | |
| 518 | 515 | ``` | |
@@ -522,10 +519,7 @@ const http2 = require('../common/http2'); | |||
| 522 | 519 | The `http2.Frame` is a base class that creates a `Buffer` containing a | |
| 523 | 520 | serialized HTTP/2 frame header. | |
| 524 | 521 | ||
| 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 --> | ||
| 529 | 523 | ```js | |
| 530 | 524 | // length is a 24-bit unsigned integer | |
| 531 | 525 | // 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. | |||
| 544 | 538 | The `http2.DataFrame` is a subclass of `http2.Frame` that serializes a `DATA` | |
| 545 | 539 | frame. | |
| 546 | 540 | ||
| 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 --> | ||
| 551 | 542 | ```js | |
| 552 | 543 | // id is the 32-bit stream identifier | |
| 553 | 544 | // payload is a Buffer containing the DATA payload | |
@@ -564,10 +555,7 @@ socket.write(frame.data); | |||
| 564 | 555 | The `http2.HeadersFrame` is a subclass of `http2.Frame` that serializes a | |
| 565 | 556 | `HEADERS` frame. | |
| 566 | 557 | ||
| 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 --> | ||
| 571 | 559 | ```js | |
| 572 | 560 | // id is the 32-bit stream identifier | |
| 573 | 561 | // payload is a Buffer containing the HEADERS payload (see either | |
@@ -585,10 +573,7 @@ socket.write(frame.data); | |||
| 585 | 573 | The `http2.SettingsFrame` is a subclass of `http2.Frame` that serializes an | |
| 586 | 574 | empty `SETTINGS` frame. | |
| 587 | 575 | ||
| 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 --> | ||
| 592 | 577 | ```js | |
| 593 | 578 | // ack is a boolean indicating whether or not to set the ACK flag. | |
| 594 | 579 | const frame = new http2.SettingsFrame(ack); | |
@@ -601,10 +586,7 @@ socket.write(frame.data); | |||
| 601 | 586 | Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2 | |
| 602 | 587 | request headers to be used as the payload of a `http2.HeadersFrame`. | |
| 603 | 588 | ||
| 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 --> | ||
| 608 | 590 | ```js | |
| 609 | 591 | const frame = new http2.HeadersFrame(1, http2.kFakeRequestHeaders, 0, true); | |
| 610 | 592 | ||
@@ -616,10 +598,7 @@ socket.write(frame.data); | |||
| 616 | 598 | Set to a `Buffer` instance that contains a minimal set of serialized HTTP/2 | |
| 617 | 599 | response headers to be used as the payload a `http2.HeadersFrame`. | |
| 618 | 600 | ||
| 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 --> | ||
| 623 | 602 | ```js | |
| 624 | 603 | const frame = new http2.HeadersFrame(1, http2.kFakeResponseHeaders, 0, true); | |
| 625 | 604 | ||
@@ -631,10 +610,7 @@ socket.write(frame.data); | |||
| 631 | 610 | Set to a `Buffer` containing the preamble bytes an HTTP/2 client must send | |
| 632 | 611 | upon initial establishment of a connection. | |
| 633 | 612 | ||
| 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 --> | ||
| 638 | 614 | ```js | |
| 639 | 615 | socket.write(http2.kClientMagic); | |
| 640 | 616 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments