pub struct CaptureRecord<'a> {
pub request_id: &'a str,
pub method: HttpMethod,
pub path: &'a str,
pub query: Option<&'a str>,
pub headers: &'a [(String, String)],
pub body: &'a [u8],
pub response_status: u16,
pub response_body: &'a [u8],
}Expand description
One captured request/response exchange, borrowed for the duration of the
Capture::capture call. Full fidelity: bodies and header values included.
Fields§
§request_id: &'a strThe proxy’s correlation id for the exchange.
method: HttpMethodThe client request method.
path: &'a strThe request path (e.g. /orders/_doc/1).
query: Option<&'a str>The request query string without the ?, if any.
headers: &'a [(String, String)]The request headers (subject to any composed redaction).
body: &'a [u8]The raw request body.
response_status: u16The status the proxy returned to the client.
response_body: &'a [u8]The raw response body.
Trait Implementations§
Source§impl<'a> Clone for CaptureRecord<'a>
impl<'a> Clone for CaptureRecord<'a>
Source§fn clone(&self) -> CaptureRecord<'a>
fn clone(&self) -> CaptureRecord<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CaptureRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for CaptureRecord<'a>
impl<'a> RefUnwindSafe for CaptureRecord<'a>
impl<'a> Send for CaptureRecord<'a>
impl<'a> Sync for CaptureRecord<'a>
impl<'a> Unpin for CaptureRecord<'a>
impl<'a> UnsafeUnpin for CaptureRecord<'a>
impl<'a> UnwindSafe for CaptureRecord<'a>
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