Skip to content

doc: explanation for browser support of HTTP/2 - #14670

Closed
giltayar wants to merge 2 commits into
nodejs:masterfrom
giltayar:http2-doc
Closed

doc: explanation for browser support of HTTP/2#14670
giltayar wants to merge 2 commits into
nodejs:masterfrom
giltayar:http2-doc

Conversation

@giltayar

Copy link
Copy Markdown
Contributor

Since browsers support HTTP/2 only using SSL, the basic example
given in the docs won't work if the client is a browser.

Added a note in http2 documentation explaining this and how to change
the code to make browser support it.

Checklist
Affected core subsystem(s)

Since browser support HTTP/2 only using SSL, the basic example
given in the docs won't work if the client is a browser.
Added a note to documentation explaining this and how to change
the code to make browser support it.
@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. http2 Issues or PRs related to the http2 subsystem. labels Aug 7, 2017
@giltayar

Copy link
Copy Markdown
ContributorAuthor

Provided by the friendly #goodnesssquad

@giltayargiltayar closed this Aug 7, 2017
@giltayargiltayar reopened this Aug 7, 2017
@benjamingr

Copy link
Copy Markdown
Member

@jasnell discovered when reading the test.

Comment threaddoc/api/http2.md Outdated
server.listen(80);
```

Note that this is an HTTP server and does not support HTTPS.

@mscdexmscdexAug 7, 2017

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/this/the above example/

Also, I think using the terms HTTP and HTTPS could be confusing since I would bet most people would associate those terms with HTTP 1.x?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 ... s/HTTP server/HTTP2 server

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or perhaps better yet: 'HTTP/2 server', which is used elsewhere in this document.

@addaleax

Copy link
Copy Markdown
Member

Landed in 52a0d97, and cut the subject line a bit to fit into 50 characters.

Thank you a lot!

addaleax pushed a commit that referenced this pull request Aug 10, 2017
Since browser support HTTP/2 only using SSL, the basic example
given in the docs won't work if the client is a browser.
Added a note to documentation explaining this and how to change
the code to make browser support it.
PR-URL: #14670
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
jasnell pushed a commit to jasnell/node that referenced this pull request Aug 13, 2017
Since browser support HTTP/2 only using SSL, the basic example
given in the docs won't work if the client is a browser.
Added a note to documentation explaining this and how to change
the code to make browser support it.
PR-URL: nodejs#14670
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
addaleax pushed a commit that referenced this pull request Aug 14, 2017
Since browser support HTTP/2 only using SSL, the basic example
given in the docs won't work if the client is a browser.
Added a note to documentation explaining this and how to change
the code to make browser support it.
PR-URL: #14670
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@addaleaxaddaleax mentioned this pull request Aug 14, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.http2Issues or PRs related to the http2 subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@giltayar@benjamingr@addaleax@mscdex@jasnell@MylesBorins@nodejs-github-bot