Open Bug 1842124 Opened 1 year ago Updated 1 year ago

Expose HTTP-method to FindProxyForURL()

Categories

(Core :: Networking: HTTP, enhancement, P3)

enhancement

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().

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.

Component: Untriaged → Networking: HTTP
Product: Firefox → Core
Severity: -- → N/A
Priority: -- → P3
Whiteboard: [necko-triaged]
You need to log in before you can comment on or make changes to this bug.