1pub mod cache;
14pub mod clipboard;
15pub mod cookie;
16pub mod fetch;
17pub mod geolocation;
18pub mod http2;
19pub mod huffman_table;
20pub mod tls;
21pub mod websocket;
22
23pub use cache::{Cache, CacheEntry, CacheStorage};
24pub use clipboard::{Clipboard, ClipboardError};
25pub use cookie::{
26 can_set_cookie_domain, default_path_for_request, domain_matches, parse_http_date, path_matches,
27 Cookie, CookieJar, SameSite,
28};
29pub use fetch::{
30 compute_origin, decode_chunked_body, decompress_body, fetch, fetch_single,
31 is_cors_simple_request, parse_http_response, resolve_redirect_url, AbortController,
32 AbortSignal, FetchError, FormData, Headers, ParsedUrl, RequestCredentials, RequestInit,
33 RequestMode, Response,
34};
35pub use geolocation::{
36 haversine_distance_meters, initial_bearing_degrees, parse_env_lat_lon,
37 parse_geoclue_dbus_output, parse_gpsd_tpv_json, parse_ip_geolocation_json, parse_nmea_sentence,
38 GeoCoordinates, Geolocation, GeolocationError, GeolocationOptions, GeolocationPosition,
39 GeolocationSource, OsGeolocationProvider,
40};
41pub use http2::{
42 decode_hpack_headers, encode_hpack_headers, execute_http2_request, Http2Frame, FLAG_ACK,
43 FLAG_END_HEADERS, FLAG_END_STREAM, FRAME_CONTINUATION, FRAME_DATA, FRAME_GOAWAY, FRAME_HEADERS,
44 FRAME_PING, FRAME_PRIORITY, FRAME_PUSH_PROMISE, FRAME_RST_STREAM, FRAME_SETTINGS,
45 FRAME_WINDOW_UPDATE,
46};
47pub use tls::{create_tls_stream, get_or_init_tls_config, HttpTransportStream};
48pub use websocket::{
49 base64_encode, compute_sec_websocket_accept, decode_frame, encode_frame,
50 generate_sec_websocket_key, sha1, WebSocket, WsError, WsFrame, WsMessage, WsOpcode, WsState,
51};
52
53pub mod prelude {
54 pub use super::cache::{Cache, CacheEntry, CacheStorage};
55 pub use super::clipboard::{Clipboard, ClipboardError};
56 pub use super::cookie::{Cookie, CookieJar, SameSite};
57 pub use super::fetch::{
58 fetch, AbortController, AbortSignal, FetchError, FormData, Headers, RequestCredentials,
59 RequestInit, RequestMode, Response,
60 };
61 pub use super::geolocation::{
62 haversine_distance_meters, GeoCoordinates, Geolocation, GeolocationError,
63 GeolocationOptions, GeolocationPosition, GeolocationSource as WebGeolocationSource,
64 };
65 pub use super::websocket::{WebSocket, WsError, WsMessage, WsOpcode, WsState};
66}