pub struct NonSuccessStreamingClient {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: Bytes,
}Available on crate feature
test-utils only.Expand description
An HttpClientExt whose send_streaming hands a non-success reply back
as an Ok response — the fourth non-success cell: a custom transport that
does not reject on status, so the driver must.
Fields§
§status: StatusCode§headers: HeaderMap§body: BytesTrait Implementations§
Source§impl Clone for NonSuccessStreamingClient
impl Clone for NonSuccessStreamingClient
Source§impl Debug for NonSuccessStreamingClient
impl Debug for NonSuccessStreamingClient
Source§impl HttpClientExt for NonSuccessStreamingClient
impl HttpClientExt for NonSuccessStreamingClient
Source§fn send<T, U>(
&self,
_req: Request<T>,
) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
fn send<T, U>( &self, _req: Request<T>, ) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
Sends a request and returns headers with a lazy body converted from bytes to
U.Source§fn send_multipart<U>(
&self,
_req: Request<MultipartForm>,
) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
fn send_multipart<U>( &self, _req: Request<MultipartForm>, ) -> impl Future<Output = Result<Response<LazyBody<U>>>> + WasmCompatSend + 'static
Sends a multipart request and returns headers with a lazy body converted to
U.Source§fn send_streaming<T>(
&self,
_req: Request<T>,
) -> impl Future<Output = Result<StreamingResponse>> + WasmCompatSend
fn send_streaming<T>( &self, _req: Request<T>, ) -> impl Future<Output = Result<StreamingResponse>> + WasmCompatSend
Sends a request and returns headers with a stream of transport byte chunks.
Auto Trait Implementations§
impl !Freeze for NonSuccessStreamingClient
impl RefUnwindSafe for NonSuccessStreamingClient
impl Send for NonSuccessStreamingClient
impl Sync for NonSuccessStreamingClient
impl Unpin for NonSuccessStreamingClient
impl UnsafeUnpin for NonSuccessStreamingClient
impl UnwindSafe for NonSuccessStreamingClient
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