Expose HTTP-method to FindProxyForURL()
Categories
(Core :: Networking: HTTP, enhancement, P3)
Tracking
()
People
(Reporter: mi+mozilla, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Steps to reproduce:
I'd like my FindProxyForURL() code to be able to make different proxy-decisions depending on the HTTP-method of the request.
For example, someone may prefer to route GETs through a local caching proxy, while the PUTs and the POSTs go DIRECT.
Or, it may be desirable in some situations for GETs to go directly, while POSTs and PUTs got through the tor-network.
Other use-cases abound...
And so on... If the JavaScript syntax allows it, the method may just be added as an optional argument: FindProxyForURL(url, host, method).
Or it could be exposed via a function call, something like getHTTPMethod().
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Networking: HTTP' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•1 year ago
|
Updated•1 year ago
|
Description
•