servo/components/net/tests
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
..
parsable_mime Merge net and net_tests 2018-01-20 15:36:09 +01:00
cookie.rs Fix handling of __Secure- and __Host- Cookie prefixes (#33717) 2024-10-09 04:52:48 +00:00
cookie_http_state.rs dependencies: Upgrade cookie and rename Servo's Cookie to ServoCookie (#32861) 2024-07-26 16:13:39 +00:00
cookie_http_state_utils.py Fix remaining flake8 warnings 2020-06-21 03:34:32 +02:00
data_loader.rs Include WebViewId into EmbedderMsg variants where possible (#35211) 2025-01-30 11:15:35 +00:00
fetch.rs libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
file_loader.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
filemanager_thread.rs servoshell: Migrate to egui-file-dialog from tinyfiledialogs (#34823) 2025-02-04 18:24:24 +00:00
hsts.rs deps: Upgrade to webrender@0.66 (#35325) 2025-02-07 11:57:26 +00:00
http_cache.rs Include WebViewId into EmbedderMsg variants where possible (#35211) 2025-01-30 11:15:35 +00:00
http_loader.rs libservo: Add a delegate method for HTTP authentication (#35400) 2025-02-10 23:39:24 +00:00
main.rs libservo: Convert intercept_web_resource_load into load_web_resource (#35564) 2025-02-21 14:36:42 +00:00
mime_classifier.rs clippy: fix warnings in components/net (#31564) 2024-03-10 15:34:16 +00:00
resource_thread.rs make protocol handlers registrable (#33104) 2024-08-22 04:11:16 +00:00
subresource_integrity.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
test.jpeg Merge net and net_tests 2018-01-20 15:36:09 +01:00