pub enum PreviewDecision {
Continue,
Respond(Response),
}Expand description
Decision returned by a preview-aware route handler.
Returning PreviewDecision::Respond lets a service send a final ICAP
response after seeing only preview bytes, before the server emits
ICAP/1.0 100 Continue and before the client uploads the remainder.
Variants§
Continue
Continue the normal Preview flow.
The server sends ICAP/1.0 100 Continue, reads the remaining chunked
body, and invokes the same route again with a full body.
Respond(Response)
Send this final ICAP response immediately.
The server does not emit 100 Continue and does not read the remainder
of the request body.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreviewDecision
impl RefUnwindSafe for PreviewDecision
impl Send for PreviewDecision
impl Sync for PreviewDecision
impl Unpin for PreviewDecision
impl UnsafeUnpin for PreviewDecision
impl UnwindSafe for PreviewDecision
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