New vendor/servo-net/nacre.rs holds embedder-set state; http_loader and websocket_loader read it. Settings rows are working switches; privacy mode turns blocking on. Loopback smoke tests/smoke/privacy-net.txt, unit tests for site matching. Patch list in DESIGN.md, D-017. Co-Authored-By: Claude Opus 5.5 <[email protected]>
45 lines
1.2 KiB
Rust
45 lines
1.2 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
pub mod async_runtime;
|
|
pub mod connector;
|
|
pub mod cookie;
|
|
pub mod cookie_storage;
|
|
mod decoder;
|
|
mod devtools;
|
|
mod disk_cache;
|
|
pub mod embedder;
|
|
pub mod filemanager_thread;
|
|
mod hosts;
|
|
/// Nacre patch (S023): embedder-set request headers and third-party cookie blocking.
|
|
pub mod nacre;
|
|
pub mod hsts;
|
|
pub mod http_cache;
|
|
pub mod http_loader;
|
|
pub mod image_cache;
|
|
pub mod local_directory_listing;
|
|
pub mod protocols;
|
|
pub mod request_interceptor;
|
|
pub mod resource_thread;
|
|
pub mod subresource_integrity;
|
|
#[cfg(feature = "test-util")]
|
|
pub mod test_util;
|
|
mod websocket_loader;
|
|
|
|
/// An implementation of the [Fetch specification](https://fetch.spec.whatwg.org/)
|
|
pub mod fetch {
|
|
pub mod cors_cache;
|
|
pub mod fetch_params;
|
|
pub mod headers;
|
|
pub mod methods;
|
|
}
|
|
|
|
/// A module for re-exports of items used in unit tests.
|
|
pub mod test {
|
|
pub use crate::decoder::{BodyStreamError, DECODER_BUFFER_SIZE, map_decode_error};
|
|
pub use crate::hosts::parse_hostsfile;
|
|
pub use crate::http_loader::HttpState;
|
|
}
|