Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 136b4c7ce2ff25a0f80c20a85cc68163acd12b61
https://github.com/WebKit/WebKit/commit/136b4c7ce2ff25a0f80c20a85cc68163acd12b61
Author: Jeffrey Xu <[email protected]>
Date: 2026-08-14 (Fri, 14 Aug 2026)
Changed paths:
M Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.h
M Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.mm
M Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.swift
M Tools/TestWebKitAPI/Helpers/cocoa/NetworkSPI.h
M Tools/TestWebKitAPI/SourcesCocoa.txt
A Tools/TestWebKitAPI/Tests/WebKit/WKWebView/HTTP3Server.mm
Log Message:
-----------
Add an HTTP/3 server to API tests.
rdar://181640656
Reviewed by Alex Christensen.
This is implemented with the libnetcore library, similar to other existing API
test helpers.
This reuses a lot of the work added by
https://github.com/WebKit/WebKit/pull/70871 for the HTTP/2 server.
This commit was partially written by Claude, with human review.
Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/HTTP3Server.mm
* Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.h:
* Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.mm:
(TestWebKitAPI::shouldDisableTLS):
(TestWebKitAPI::attachHTTPMessagingListener):
(TestWebKitAPI::quicListenerParameters):
(TestWebKitAPI::HTTPServer::listenerParameters):
(TestWebKitAPI::HTTPServer::HTTPServer):
(TestWebKitAPI::HTTPServer::scheme const):
* Tools/TestWebKitAPI/SourcesCocoa.txt:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/HTTP3Server.mm: Added.
(-[HTTP3ServerSessionDelegate
URLSession:task:didReceiveChallenge:completionHandler:]):
(TestWebKitAPI::http3Request):
(TestWebKitAPI::TEST(HTTP3Server, RoundTrip)):
(TestWebKitAPI::TEST(HTTP3Server, RequestMethodPathAndHeaders)):
(TestWebKitAPI::TEST(HTTP3Server, POSTBody)):
(TestWebKitAPI::TEST(HTTP3Server, NonDefaultStatusCodeAndResponseHeader)):
(TestWebKitAPI::TEST(HTTP3Server, MultipleRequestsOverOneConnection)):
(TestWebKitAPI::connectRawHTTP3Client):
(TestWebKitAPI::receiveRawHTTP3Response):
(TestWebKitAPI::performRawHTTP3Request):
* Tools/TestWebKitAPI/Helpers/cocoa/HTTPServer.swift:
* Tools/TestWebKitAPI/Helpers/cocoa/NetworkSPI.h:
Canonical link: https://commits.webkit.org/319204@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications