Struct esp_idf_svc::http::client::Request
source · pub struct Request<C>(/* private fields */);
Implementations§
source§impl<C> Request<C>where
C: Connection,
impl<C> Request<C>where
C: Connection,
pub fn wrap(connection: C) -> Request<C>
pub fn submit(self) -> Result<Response<C>, <C as ErrorType>::Error>
pub fn connection(&mut self) -> &mut C
pub fn release(self) -> C
pub fn write(&mut self, buf: &[u8]) -> Result<usize, <C as ErrorType>::Error>
pub fn flush(&mut self) -> Result<(), <C as ErrorType>::Error>
Trait Implementations§
source§impl<C> Write for Request<C>where
C: Connection,
impl<C> Write for Request<C>where
C: Connection,
source§fn write(
&mut self,
buf: &[u8],
) -> Result<usize, <Request<C> as ErrorType>::Error>
fn write( &mut self, buf: &[u8], ) -> Result<usize, <Request<C> as ErrorType>::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
source§fn flush(&mut self) -> Result<(), <Request<C> as ErrorType>::Error>
fn flush(&mut self) -> Result<(), <Request<C> as ErrorType>::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.