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;
12pub mod embedder;
13pub mod filemanager_thread;
14mod hosts;
15pub mod hsts;
16pub mod http_cache;
17pub mod http_loader;
18pub mod image_cache;
19pub mod local_directory_listing;
20pub mod protocols;
21pub mod request_interceptor;
22pub mod resource_thread;
23pub mod subresource_integrity;
24#[cfg(feature = "test-util")]
25pub mod test_util;
26mod websocket_loader;
27
28/// An implementation of the [Fetch specification](https://fetch.spec.whatwg.org/)
29pub mod fetch {
30    pub mod cors_cache;
31    pub mod fetch_params;
32    pub mod headers;
33    pub mod methods;
34}
35
36/// A module for re-exports of items used in unit tests.
37pub mod test {
38    pub use crate::decoder::DECODER_BUFFER_SIZE;
39    pub use crate::hosts::parse_hostsfile;
40    pub use crate::http_loader::HttpState;
41}