pub struct RequestInspector {
pub max_body_preview: usize,
pub show_all_headers: bool,
pub show_timing: bool,
/* private fields */
}Expand description
HTTP request inspector.
Provides detailed visual display of HTTP requests for debugging.
Fields§
§max_body_preview: usizeMaximum body preview length.
show_all_headers: boolWhether to show all headers.
show_timing: boolWhether to show timing information.
Implementations§
Source§impl RequestInspector
impl RequestInspector
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new request inspector.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Sourcepub fn inspect(&self, info: &RequestInfo) -> String
pub fn inspect(&self, info: &RequestInfo) -> String
Inspect a request and return formatted output.
Trait Implementations§
Source§impl Clone for RequestInspector
impl Clone for RequestInspector
Source§fn clone(&self) -> RequestInspector
fn clone(&self) -> RequestInspector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RequestInspector
impl RefUnwindSafe for RequestInspector
impl Send for RequestInspector
impl Sync for RequestInspector
impl Unpin for RequestInspector
impl UnsafeUnpin for RequestInspector
impl UnwindSafe for RequestInspector
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