[webkit-changes] [WebKit/WebKit] 055b0b: [ews-build.webkit.org] Support proxy Twisted requests
Jonathan Bedard
noreply at github.com
Fri Dec 16 16:43:12 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 055b0ba705b4bc002b0f0ea7d5c7a9c33998d5da
https://github.com/WebKit/WebKit/commit/055b0ba705b4bc002b0f0ea7d5c7a9c33998d5da
Author: Jonathan Bedard <jbedard at apple.com>
Date: 2022-12-16 (Fri, 16 Dec 2022)
Changed paths:
M Tools/CISupport/ews-build/results_db.py
A Tools/CISupport/ews-build/twisted_additions.py
Log Message:
-----------
[ews-build.webkit.org] Support proxy Twisted requests
https://bugs.webkit.org/show_bug.cgi?id=249484
rdar://103451811
Reviewed by Dewei Zhu.
Create a Twisted based Response object that closely mirrors the response object
from the requests library, and add support for HTTP_PROXY environment variables.
* Tools/CISupport/ews-build/results_db.py:
(ResultsDatabase.get_results_summary): Use shared TwistedAdditions.request.
(ResultsDatabase.JsonPrinter): Deleted.
* Tools/CISupport/ews-build/twisted_additions.py: Added.
(HTTPProxyConnector): Based on https://github.com/fmoo/twisted-connect-proxy.
(HTTPProxiedClientFactory): Ditto.
(HTTPConnectTunneler): Ditto.
(HTTPConnectSetup): Ditto.
(TwistedAdditions): Added scoping class for some Twisted utilities.
(TwistedAdditions.Response): More ergonomic response class mirroring requests.
(TwistedAdditions.Printer): Generic protocol for consumer responses.
(TwistedAdditions.request): Perform a request a return a deferred respons.
Canonical link: https://commits.webkit.org/258027@main
More information about the webkit-changes
mailing list