pub struct HttpTransport { /* private fields */ }Implementations§
Source§impl HttpTransport
impl HttpTransport
pub fn new(opts: HttpOptions) -> Result<Self, SolariError>
pub fn api_key(&self) -> &str
Sourcepub fn auth_headers(&self) -> Vec<(String, String)>
pub fn auth_headers(&self) -> Vec<(String, String)>
Authorization header for handles + WS upgrades.
pub async fn request<T: DeserializeOwned>( &self, method: &str, path: &str, body: Option<Value>, idempotency_key: Option<String>, ) -> Result<T, SolariError>
Auto Trait Implementations§
impl !RefUnwindSafe for HttpTransport
impl !UnwindSafe for HttpTransport
impl Freeze for HttpTransport
impl Send for HttpTransport
impl Sync for HttpTransport
impl Unpin for HttpTransport
impl UnsafeUnpin for HttpTransport
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