Title: Missing `Http2ServerResponse.setHeaders()` · Issue #51573 · nodejs/node · GitHub
Open Graph Title: Missing `Http2ServerResponse.setHeaders()` · Issue #51573 · nodejs/node
X Title: Missing `Http2ServerResponse.setHeaders()` · Issue #51573 · nodejs/node
Description: What is the problem this feature will solve? Make it possible to use response.setHeaders() on both old HTTP response objects and ones coming from node:http2. BTW I wasn't sure if this should be a "feature request" or a "bug." What is the...
Open Graph Description: What is the problem this feature will solve? Make it possible to use response.setHeaders() on both old HTTP response objects and ones coming from node:http2. BTW I wasn't sure if this should be a "...
X Description: What is the problem this feature will solve? Make it possible to use response.setHeaders() on both old HTTP response objects and ones coming from node:http2. BTW I wasn't sure if this should be...
Opengraph URL: https://github.com/nodejs/node/issues/51573
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing `Http2ServerResponse.setHeaders()`","articleBody":"### What is the problem this feature will solve?\n\nMake it possible to use `response.setHeaders()` on both old HTTP response objects and ones coming from `node:http2`.\r\n\r\nBTW I wasn't sure if this should be a \"feature request\" or a \"bug.\"\n\n### What is the feature you are proposing to solve the problem?\n\nAdd the method `http2.Http2ServerResponse.setHeaders()` to have the same API as `http.OutgoingMessage.setHeaders()`.\r\n\r\nSee \u003chttps://nodejs.org/api/http.html#outgoingmessagesetheadersheaders>.\n\n### What alternatives have you considered?\n\n* Avoiding using `setHeaders()` at all.\r\n* Monkey-patching `Http2ServerResponse`.\r\n* Just writing two versions of my own set-headers code, on the assumption that, when available, `setHeaders()` is the most efficient option.","author":{"url":"https://github.com/danfuzz","@type":"Person","name":"danfuzz"},"datePublished":"2024-01-26T23:10:04Z","url":"https://github.com/nodejs/node/issues/51573"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:955c02b1-1567-ec4a-09f8-ab9a1c3529f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A92E:261BEA:5CD23F:7B86A7:6B0624F1 |
| html-safe-nonce | 967c204647ae74325c489deb673784ba23092b64a78a96311bd65fb39a5472bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTJFOjI2MUJFQTo1Q0QyM0Y6N0I4NkE3OjZCMDYyNEYxIiwidmlzaXRvcl9pZCI6IjEyNzQ3NDE5NTczMzEzOTU4MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d64da0d1cd1d9a31346c1f6cebd3e6e026dbfc3eb052147eac5ec7249850f217 |
| hovercard-subject-tag | issue:2103042252 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/51573/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c1e7b2f44e8dea1b9373cd6dc6876880e63d1c0b662e466c8558c4ee00ffd42/nodejs/node/issues/51573 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c1e7b2f44e8dea1b9373cd6dc6876880e63d1c0b662e466c8558c4ee00ffd42/nodejs/node/issues/51573 |
| og:image:alt | What is the problem this feature will solve? Make it possible to use response.setHeaders() on both old HTTP response objects and ones coming from node:http2. BTW I wasn't sure if this should be a "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danfuzz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width