pub struct HttpTransportConfig {
pub api_key: String,
pub endpoint: Url,
pub headers: HeaderMap,
pub max_batch_size: usize,
pub timeout: Duration,
pub client: Client,
}Expand description
Configuration for the HTTP JSON-RPC transport.
Fields§
§api_key: StringERPC API key.
endpoint: UrlHTTP endpoint, without the API key query parameter.
headers: HeaderMapExtra request headers.
max_batch_size: usizeMaximum accepted caller batch size.
timeout: DurationRequest timeout.
client: ClientConfigured HTTP client.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpTransportConfig
impl !UnwindSafe for HttpTransportConfig
impl Freeze for HttpTransportConfig
impl Send for HttpTransportConfig
impl Sync for HttpTransportConfig
impl Unpin for HttpTransportConfig
impl UnsafeUnpin for HttpTransportConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more