Skip to main content

net/
lib.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5#![deny(unsafe_code)]
6
7pub mod async_runtime;
8pub mod connector;
9pub mod cookie;
10pub mod cookie_storage;
11mod decoder;
12mod devtools;
13mod disk_cache;
14pub mod embedder;
15pub mod filemanager_thread;
16mod hosts;
17pub mod hsts;
18pub mod http_cache;
19pub mod http_loader;
20pub mod image_cache;
21pub mod local_directory_listing;
22pub mod protocols;
23pub mod request_interceptor;
24pub mod resource_thread;
25pub mod subresource_integrity;
26#[cfg(feature = "test-util")]
27pub mod test_util;
28mod websocket_loader;
29
30/// An implementation of the [Fetch specification](https://fetch.spec.whatwg.org/)
31pub mod fetch {
32    pub mod cors_cache;
33    pub mod fetch_params;
34    pub mod headers;
35    pub mod methods;
36}
37
38/// A module for re-exports of items used in unit tests.
39pub mod test {
40    pub use crate::decoder::{BodyStreamError, DECODER_BUFFER_SIZE, map_decode_error};
41    pub use crate::hosts::parse_hostsfile;
42    pub use crate::http_loader::HttpState;
43}