pub enum MaxRequestBodySize {
None,
Small,
Medium,
Always,
Explicit(usize),
}
Expand description
The maximum size of an HTTP request body that the SDK captures.
Only request bodies that parse as JSON or form data are currently captured. See the Documentation on attaching request body and the Documentation on handling sensitive data for more information.
Variants§
None
Don’t capture request body
Small
Capture up to 1000 bytes
Medium
Capture up to 10000 bytes
Always
Capture entire body
Explicit(usize)
Capture up to a specific size
Implementations§
Source§impl MaxRequestBodySize
impl MaxRequestBodySize
Sourcepub fn is_within_size_limit(&self, content_length: usize) -> bool
pub fn is_within_size_limit(&self, content_length: usize) -> bool
Check if the content length is within the size limit.
Trait Implementations§
Source§impl Clone for MaxRequestBodySize
impl Clone for MaxRequestBodySize
Source§fn clone(&self) -> MaxRequestBodySize
fn clone(&self) -> MaxRequestBodySize
Returns a copy 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 moreSource§impl PartialEq for MaxRequestBodySize
impl PartialEq for MaxRequestBodySize
impl Copy for MaxRequestBodySize
impl StructuralPartialEq for MaxRequestBodySize
Auto Trait Implementations§
impl Freeze for MaxRequestBodySize
impl RefUnwindSafe for MaxRequestBodySize
impl Send for MaxRequestBodySize
impl Sync for MaxRequestBodySize
impl Unpin for MaxRequestBodySize
impl UnwindSafe for MaxRequestBodySize
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