pub struct HttpExchange {
pub method: String,
pub path: String,
pub query_params: Option<String>,
pub headers: String,
pub body: Option<String>,
pub body_encoding: String,
pub status_code: Option<i32>,
pub response_headers: Option<String>,
pub response_body: Option<String>,
pub response_body_encoding: Option<String>,
pub timestamp: DateTime<Utc>,
}Expand description
Captured HTTP request/response exchange used for behavioral analysis.
Fields§
§method: StringHTTP method.
path: StringRequest path.
query_params: Option<String>Query parameters (raw query string).
headers: StringRequest headers (JSON string).
body: Option<String>Request body (optional).
body_encoding: StringRequest body encoding.
status_code: Option<i32>Response status code.
response_headers: Option<String>Response headers (JSON string).
response_body: Option<String>Response body (optional).
response_body_encoding: Option<String>Response body encoding.
timestamp: DateTime<Utc>Timestamp.
Trait Implementations§
Source§impl Clone for HttpExchange
impl Clone for HttpExchange
Source§fn clone(&self) -> HttpExchange
fn clone(&self) -> HttpExchange
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 HttpExchange
impl RefUnwindSafe for HttpExchange
impl Send for HttpExchange
impl Sync for HttpExchange
impl Unpin for HttpExchange
impl UnsafeUnpin for HttpExchange
impl UnwindSafe for HttpExchange
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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