Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Commit

Permalink
http2: Cleanup lint nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Jun 22, 2017
1 parent cc0e350 commit 547c15e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 336 deletions.
12 changes: 6 additions & 6 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const http2 = require('http2');

const client = http2.connect('http://localhost:80');

const req = client.request({ ':path': '/'});
const req = client.request({ ':path': '/' });

req.on('response', (headers) => {
console.log(headers[':status']);
Expand Down Expand Up @@ -662,7 +662,7 @@ value will be `undefined` after the `Http2Stream` instance is destroyed.
const http2 = require('http2');
const client = http2.connect('http://example.org:8000');

const req = client.request({':path': '/'});
const req = client.request({ ':path': '/' });

// Cancel the stream if there's no activity after 5 seconds
req.setTimeout(5000, () => req.rstStreamWithCancel());
Expand Down Expand Up @@ -772,9 +772,9 @@ instance created for the push stream.
const http2 = require('http2');
const server = http2.createServer();
server.on('stream', (stream) => {
stream.respond({':status': 200});
stream.pushStream({':path': '/'}, (pushStream) => {
pushStream.respond({':status': 200});
stream.respond({ ':status': 200 });
stream.pushStream({ ':path': '/' }, (pushStream) => {
pushStream.respond({ ':status': 200 });
pushStream.end('some pushed data');
});
stream.end('some data');
Expand All @@ -791,7 +791,7 @@ server.on('stream', (stream) => {
const http2 = require('http2');
const server = http2.createServer();
server.on('stream', (stream) => {
stream.respond({':status': 200});
stream.respond({ ':status': 200 });
stream.end('some data');
});
```
Expand Down
330 changes: 0 additions & 330 deletions doc/http2-implementation-notes.md

This file was deleted.

0 comments on commit 547c15e

Please sign in to comment.