Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix http and http2 writeEarlyHints() parameter #45000

Merged
merged 1 commit into from Oct 17, 2022

Commits on Oct 14, 2022

  1. doc: fix http and http2 writeEarlyHints() parameter

    Both http and http2 `response.writeEarlyHints()` take an object,
    not an array, as their first parameter. For http, this was updated in
    the examples via #44820 except for the final example, which this
    patch fixes.
    The doc for the http2 version was not touched in #44820 although
    I am pretty sure from skimming the code that it behaves identically
    to http, and so propose to change its doc as well.
    Finally, some bogus headline levels are fixed in http2 docs.
    meyfa committed Oct 14, 2022
    Copy the full SHA
    57e032b View commit details
    Browse the repository at this point in the history