pub struct HttpTransport { /* private fields */ }Expand description
HTTP transport implementation.
Implementations§
Trait Implementations§
Source§impl Transport for HttpTransport
impl Transport for HttpTransport
Source§fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
function_name: &'life1 str,
payload: Vec<u8>,
headers: Option<HashMap<String, String>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ServerlessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
function_name: &'life1 str,
payload: Vec<u8>,
headers: Option<HashMap<String, String>>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ServerlessError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends a request and receives a response. Read more
Auto Trait Implementations§
impl Freeze for HttpTransport
impl !RefUnwindSafe for HttpTransport
impl Send for HttpTransport
impl Sync for HttpTransport
impl Unpin for HttpTransport
impl UnsafeUnpin for HttpTransport
impl !UnwindSafe 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