servo/components/net
Martin Robinson cf2b93f18a
libservo: Convert intercept_web_resource_load into load_web_resource (#35564)
Rework the `WebViewDelegate::intercept_web_resource_load` into
`WebViewDelegate::load_web_resource` and clean up internal messaging.
The main thing here is adding objects which manage the response to these
delegate methods. Now we have `WebResourceLoad` and
`InterceptedWebResourceLoad` which make it much harder to misuse the
API.

In addition, the internal messaging for this is cleaned up. Canceling
and finishing the load are unrelated to the HTTP body so they are no
longer subtypes of an HttpBodyData message. Processing of messages is
made a bit more efficient by collecting all body chunks in a vector and
only flattening the chunks at the end.

Finally, "interceptor" is a much more common spelling than "intercepter"
so I've gone ahead and made this change everywhere.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-21 14:36:42 +00:00
..
fetch libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
protocols Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
tests libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
async_runtime.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
Cargo.toml deps: Upgrade to webrender@0.66 (#35325) 2025-02-07 11:57:26 +00:00
connector.rs Update all network-related dependencies to the latest versions (#34630) 2025-01-08 05:47:58 +00:00
cookie.rs Upgrade rustc to 1.83 (#34793) 2025-01-01 09:38:28 +00:00
cookie_storage.rs net: Stop using both versions of the time crate in the cookie code (#33260) 2024-08-30 17:15:47 +00:00
decoder.rs Remove Preferences::network_tls_ignore_unexpected_eof (#35080) 2025-01-20 13:07:54 +00:00
filemanager_thread.rs servoshell: Migrate to egui-file-dialog from tinyfiledialogs (#34823) 2025-02-04 18:24:24 +00:00
hosts.rs Replace the lazy_static crate with std::sync::LazyLock in components/net (#33046) 2024-08-14 12:15:55 +00:00
hsts.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
http_cache.rs net: Use the unfiltered response status when comparing against cached resources. (#35483) 2025-02-16 13:19:51 +00:00
http_loader.rs libservo: Add a delegate method for HTTP authentication (#35400) 2025-02-10 23:39:24 +00:00
image_cache.rs script: Do not set up an IPC route for every image load (#35041) 2025-01-25 09:39:04 +00:00
lib.rs libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
local_directory_listing.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
mime_classifier.rs clippy: Fix a bunch of warnings in script (#32680) 2024-07-04 11:40:23 +00:00
request_interceptor.rs libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
resource_thread.rs libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
storage_thread.rs build: upgrade rustc to 1.81.0 (#34270) 2024-12-12 07:26:16 +00:00
subresource_integrity.rs clippy: Fix warnings in components/net (#31626) 2024-03-13 09:40:04 +00:00
websocket_loader.rs Cleanup blocking fetch operations with bad ports (#35324) 2025-02-06 16:47:29 +00:00