Content-Length: 301221 | pFad | https://github.com/nghttp2/nghttp2/pull/2349

53 shrpx_http2_upstream: Adopt std::ranges by tatsuhiro-t · Pull Request #2349 · nghttp2/nghttp2 · GitHub
Skip to content

shrpx_http2_upstream: Adopt std::ranges#2349

Merged
tatsuhiro-t merged 1 commit intomasterfrom
nghttpx-ranges-http2-upstream
May 7, 2025
Merged

shrpx_http2_upstream: Adopt std::ranges#2349
tatsuhiro-t merged 1 commit intomasterfrom
nghttpx-ranges-http2-upstream

Conversation

@tatsuhiro-t
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Http2Upstream implementation to adopt std::ranges for iterator and copy operations.

  • Replaces std::begin/std::end with std::ranges::begin/std::ranges::end for decoding the HTTP2 settings payload.
  • Migrates from std::copy and util::copy_lit to std::ranges::copy for constructing the via header field.
Comments suppressed due to low confidence (2)

src/shrpx_http2_upstream.cc:117

  • Ensure that the header is included (if not already present) to support the use of std::ranges functions.
auto settings_payload =

src/shrpx_http2_upstream.cc:1843

  • [nitpick] Verify that 'via->value' and the string view literal ("sv") are fully supported by the current compiler and library version to avoid any compatibility issues.
p = std::ranges::copy(via->value, p).out;

@tatsuhiro-t tatsuhiro-t merged commit 8a8838d into master May 7, 2025
87 checks passed
@tatsuhiro-t tatsuhiro-t deleted the nghttpx-ranges-http2-upstream branch May 7, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nghttp2/nghttp2/pull/2349

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy