Expand description
Runtime transport that connects on first request, which can take either of an HTTP,
WebSocket, or IPC transport. Retries are handled by a client layer (e.g.,
RetryBackoffLayer) when used.
Re-exportsยง
use crate::DEFAULT_USER_AGENT;๐use crate::REQUEST_TIMEOUT;๐use crate::provider::mpp::transport::LazyMppHttpTransport;๐use crate::provider::mpp::transport::lazy_mpp_ws_connect;๐use crate::provider::redact_url;๐use alloy_json_rpc::RequestPacket;๐use alloy_json_rpc::ResponsePacket;๐use alloy_pubsub::PubSubConnect;๐use alloy_pubsub::PubSubFrontend;๐use alloy_rpc_types_engine::Claims;๐use alloy_rpc_types_engine::JwtSecret;๐use alloy_transport::Authorization;๐use alloy_transport::BoxTransport;๐use alloy_transport::TransportError;๐use alloy_transport::TransportFut;๐use alloy_transport::utils::guess_local_url;๐use alloy_transport_ipc::IpcConnect;๐use alloy_transport_ws::WsConnect;๐use regex::Captures;๐use regex::Regex;๐use reqwest::header::HeaderName;๐use reqwest::header::HeaderValue;๐use std::error::Error as StdError;๐use std::fmt;๐use std::path::PathBuf;๐use std::str::FromStr;๐use std::sync::Arc;๐use std::sync::LazyLock;๐use thiserror::Error;๐use tokio::runtime::Handle;๐use tokio::runtime::Id;๐use tokio::sync::RwLock;๐use tower::Service;๐use url::Url;๐
Structsยง
- Runtime
Transport - Runtime transport that only connects on first request.
- Runtime
Transport Builder - A builder for RuntimeTransport.
Enumsยง
- Inner
Transport - An enum representing the different transports that can be used to connect to a runtime. Only meant to be used internally by RuntimeTransport.
- Runtime
Transport Error - Error type for the runtime transport.
Constantsยง
- KNOWN_
MPP_ ๐HOSTS - Known MPP-enabled RPC host suffixes.
Staticsยง
- HTTP_
URL_ ๐RE
Functionsยง
- build_
auth ๐ - is_
known_ ๐mpp_ endpoint - Returns
trueifurlpoints to a known MPP-enabled RPC service. - redact_
http_ ๐transport_ error - url_
to_ ๐file_ path Non-Windows