Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hkleungai
Copy link
Contributor

Missing options

headersTimeout

See PR nodejs/node#41263.

headersTimeout, requestTimeout and keepAliveTimeout are now supported directly in http.createServer function and they are sanitized.

requireHostHeader

See PR nodejs/node#45597.

http: created requireHostHeader field to enable host header check

rejectNonStandardBodyWrites

See PR nodejs/node#47732.

http: rejecting invalid body writes configurable with option rejectNonStandardBodyWrites
http: set rejectNonStandardBodyWrites option default to false

Notes

jsdoc descriptions, default values, and @since versions can be tracked in the above PRs, and in nodejs documentation https://nodejs.org/api/http.html#httpcreateserveroptions-requestlistener.


Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>

@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 20, 2025

@hkleungai Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by a DT maintainer

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 72550,
  "author": "hkleungai",
  "headCommitOid": "a8c4c7dae44c9db0e7714dfe418961e99212d5e4",
  "mergeBaseOid": "3634b01d50c10ce1afaae63e41d39e7da309d8e3",
  "lastPushDate": "2025-04-20T19:13:01.000Z",
  "lastActivityDate": "2025-05-05T20:10:25.000Z",
  "mergeOfferDate": "2025-05-05T20:09:26.000Z",
  "mergeRequestDate": "2025-05-05T20:10:25.000Z",
  "mergeRequestUser": "hkleungai",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v20/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v20/test/http.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "Microsoft",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "galkin",
        "parambirs",
        "eps1lon",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "victorperin",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina",
        "Semigradsky",
        "Renegade334"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "RyanCavanaugh",
      "date": "2025-05-05T20:08:43.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "Renegade334",
      "date": "2025-04-25T16:37:49.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 2817300885,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 20, 2025

@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board Apr 20, 2025
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Apr 20, 2025
@hkleungai hkleungai force-pushed the node-http-add-missing-ServerOptions branch from df5ec30 to a8c4c7d Compare April 25, 2025 15:14
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in Pull Request Status Board Apr 25, 2025
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Apr 25, 2025
@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Apr 25, 2025
@typescript-bot
Copy link
Contributor

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels May 5, 2025
@typescript-bot
Copy link
Contributor

@hkleungai: Everything looks good here. I am ready to merge this PR (at a8c4c7d) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@microsoft, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky, @Renegade334: you can do this too.)

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in Pull Request Status Board May 5, 2025
@hkleungai
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in Pull Request Status Board May 5, 2025
@typescript-bot typescript-bot merged commit 1b2a860 into DefinitelyTyped:master May 5, 2025
15 checks passed
@hkleungai hkleungai deleted the node-http-add-missing-ServerOptions branch May 5, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants