pub enum HttpSendYield {
WantsRead,
WantsWrite(Vec<u8>),
WantsRedirect {
url: Url,
response: HttpResponse,
keep_alive: bool,
same_origin: bool,
},
}Expand description
Per-step yield emitted by Http10Send / Http11Send; adds
Self::WantsRedirect to the standard HttpYield for 3xx responses.
Variants§
WantsRead
The coroutine wants bytes read from the stream and handed back on the next resume.
WantsWrite(Vec<u8>)
The coroutine wants these bytes written to the stream.
WantsRedirect
The server answered with a 3xx and a parseable location; the caller decides whether to follow.
Fields
§
response: HttpResponseThe 3xx response itself.
Trait Implementations§
Source§impl Debug for HttpSendYield
impl Debug for HttpSendYield
Auto Trait Implementations§
impl Freeze for HttpSendYield
impl RefUnwindSafe for HttpSendYield
impl Send for HttpSendYield
impl Sync for HttpSendYield
impl Unpin for HttpSendYield
impl UnsafeUnpin for HttpSendYield
impl UnwindSafe for HttpSendYield
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