Stripping part of the URL in chromium

6 views
Skip to first unread message

Ethan

unread,
Apr 8, 2023, 9:13:57 AM4/8/23
to network-service-dev
Hello Everyone,

I am looking at approaches for stripping part of an URL request (e.g. URL string) before it is sent to server.
Are there any existing interface or a module which allows this to happen if an embedder wants this driven by user preference?

Is it possible to do this from services/network module?
What approach would be best from an embedder point of view?

Any points would be helpful!

Regards,
Ethan

Ethan

unread,
Apr 8, 2023, 6:13:02 PM4/8/23
to network-service-dev, Ethan
Hi Network Service Experts,

It seems that a custom URLLoaderFactory allows to do customizations to any URL requests. But I am not sure if that is right or it creates a performance overhead if we just want to modify the outgoing URL string only.

Does a Throttle allow to modify URL string of outgoing requests (especially the frame navigations) ?

Regards,
Ethan

John Abd-El-Malek

unread,
Apr 10, 2023, 4:10:19 PM4/10/23
to Ethan, network-service-dev
URLLoaderThrottles allow this, see GoogleURLLoaderThrottle as an example.

--
You received this message because you are subscribed to the Google Groups "network-service-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to network-service...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/network-service-dev/39cb1534-3620-4b12-91b3-c5c10e97ddf2n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages