pub enum HandlerAction {
Response(ProxyResult),
Forward(ForwardRequest),
NeedsBody(PendingRequest),
}Expand description
The action the handler wants the runtime to take.
Variants§
Response(ProxyResult)
A fully formed response (LIST results, errors, synthetic responses).
Forward(ForwardRequest)
A presigned URL for the runtime to execute with its native HTTP client. The runtime streams request/response bodies directly — no handler involvement.
NeedsBody(PendingRequest)
The handler needs the request body to continue (multipart operations).
The runtime should materialize the body and call handle_with_body.
Implementations§
Source§impl HandlerAction
impl HandlerAction
Sourcepub fn response_headers_mut(&mut self) -> Option<&mut HeaderMap>
pub fn response_headers_mut(&mut self) -> Option<&mut HeaderMap>
Returns a mutable reference to the response headers, if available.
Returns Some(&mut HeaderMap) for Response and Forward variants,
None for NeedsBody (which has no response yet).
Auto Trait Implementations§
impl !Freeze for HandlerAction
impl RefUnwindSafe for HandlerAction
impl Send for HandlerAction
impl Sync for HandlerAction
impl Unpin for HandlerAction
impl UnsafeUnpin for HandlerAction
impl UnwindSafe for HandlerAction
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more