pub struct ResponseHandlerInput {
pub url: String,
pub request_body_values: Value,
pub response: Response,
pub abort_signal: Option<AbortSignal>,
pub max_json_response_bytes: Option<usize>,
}Expand description
Input supplied to one response handler.
Fields§
§url: String§request_body_values: Value§response: Response§abort_signal: Option<AbortSignal>§max_json_response_bytes: Option<usize>Per-request override of the successful-JSON-body size cap, forwarded
from HttpRequest::max_json_response_bytes. Only
create_json_response_handler consults this; other handlers ignore
it.
Auto Trait Implementations§
impl !RefUnwindSafe for ResponseHandlerInput
impl !UnwindSafe for ResponseHandlerInput
impl Freeze for ResponseHandlerInput
impl Send for ResponseHandlerInput
impl Sync for ResponseHandlerInput
impl Unpin for ResponseHandlerInput
impl UnsafeUnpin for ResponseHandlerInput
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