Skip to content

Allow HTTP/3 protocol version in ServerRequest - #19547

Open
masakielastic wants to merge 2 commits into
cakephp:5.xfrom
masakielastic:fix/server-request-http3-protocol-version
Open

Allow HTTP/3 protocol version in ServerRequest#19547
masakielastic wants to merge 2 commits into
cakephp:5.xfrom
masakielastic:fix/server-request-http3-protocol-version

Conversation

@masakielastic

Copy link
Copy Markdown

Update ServerRequest::withProtocolVersion() to accept HTTP/3 protocol version 3.

ServerRequest::getProtocolVersion() can already return 3 when the SERVER_PROTOCOL environment value is HTTP/3. However, withProtocolVersion('3') currently throws an InvalidArgumentException.

This change makes protocol version handling consistent and allows ServerRequest to represent HTTP/3 requests through the PSR-7 API.

Map PSR-7 HTTP protocol versions 3 and 3.0 to CURL_HTTP_VERSION_3 and add test coverage.
@markstory

Copy link
Copy Markdown
Member

Why are there curl adapter changes in this pull request?

@dereuromark dereuromark modified the milestones: 5.3.8, 5.4.0 Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants