Expand description
Strata Web API: W3C Web Platform APIs in Pure Idiomatic Rust.
§Examples
use strata_web_api::cookie::CookieJar;
let mut jar = CookieJar::new();
jar.process_set_cookie("session=xyz; Path=/", "https://example.com/api");
assert_eq!(jar.len(), 1);Re-exports§
pub use cache::Cache;pub use cache::CacheEntry;pub use cache::CacheStorage;pub use clipboard::Clipboard;pub use clipboard::ClipboardError;pub use cookie::default_path_for_request;pub use cookie::domain_matches;pub use cookie::parse_http_date;pub use cookie::path_matches;pub use cookie::Cookie;pub use cookie::CookieJar;pub use cookie::SameSite;pub use fetch::compute_origin;pub use fetch::decode_chunked_body;pub use fetch::decompress_body;pub use fetch::fetch;pub use fetch::fetch_single;pub use fetch::is_cors_simple_request;pub use fetch::parse_http_response;pub use fetch::resolve_redirect_url;pub use fetch::AbortController;pub use fetch::AbortSignal;pub use fetch::FetchError;pub use fetch::FormData;pub use fetch::Headers;pub use fetch::ParsedUrl;pub use fetch::RequestCredentials;pub use fetch::RequestInit;pub use fetch::RequestMode;pub use fetch::Response;pub use geolocation::haversine_distance_meters;pub use geolocation::initial_bearing_degrees;pub use geolocation::GeoCoordinates;pub use geolocation::Geolocation;pub use geolocation::GeolocationError;pub use geolocation::GeolocationOptions;pub use geolocation::GeolocationPosition;pub use http2::decode_hpack_headers;pub use http2::encode_hpack_headers;pub use http2::execute_http2_request;pub use http2::Http2Frame;pub use http2::FLAG_ACK;pub use http2::FLAG_END_HEADERS;pub use http2::FLAG_END_STREAM;pub use http2::FRAME_CONTINUATION;pub use http2::FRAME_DATA;pub use http2::FRAME_GOAWAY;pub use http2::FRAME_HEADERS;pub use http2::FRAME_PING;pub use http2::FRAME_PRIORITY;pub use http2::FRAME_PUSH_PROMISE;pub use http2::FRAME_RST_STREAM;pub use http2::FRAME_SETTINGS;pub use http2::FRAME_WINDOW_UPDATE;pub use tls::create_tls_stream;pub use tls::get_or_init_tls_config;pub use tls::HttpTransportStream;pub use websocket::base64_encode;pub use websocket::compute_sec_websocket_accept;pub use websocket::decode_frame;pub use websocket::encode_frame;pub use websocket::generate_sec_websocket_key;pub use websocket::sha1;pub use websocket::WebSocket;pub use websocket::WsError;pub use websocket::WsFrame;pub use websocket::WsMessage;pub use websocket::WsOpcode;pub use websocket::WsState;
Modules§
- cache
- W3C Cache API & In-Memory HTTP Resource Store with Cache-Control and ETag validation.
- clipboard
- W3C Clipboard API in Pure Idiomatic Rust.
- cookie
- RFC 6265 HTTP State Management Mechanism (Cookie Jar & Attributes).
- fetch
- Pure-Rust W3C fetch() Engine with Headers, AbortController, and HTTP Framing.
- geolocation
- W3C Geolocation API with Coordinate Math and Great-Circle Distance Solving.
- http2
- Pure-Rust HTTP/2 Framing, HPACK Header Compression, and Client Protocol Engine (RFC 7540, RFC 7541, RFC 9113).
- huffman_
table - prelude
- tls
- Production-Grade Pure-Rust TLS Transport for HTTP/1.1 and HTTPS.
- websocket
- Pure-Rust W3C WebSocket Client with RFC 6455 Frame Serialization, Handshake & TLS (
wss://).