pub enum HttpEvent {
ServerStarted {
address: String,
},
ServerStopped,
RequestReceived {
method: String,
path: String,
client_ip: Option<String>,
timestamp: DateTime<Utc>,
},
ResponseSent {
status: StatusCode,
size: usize,
duration_ms: u64,
},
MessageReceived {
id: String,
type_: String,
from: Option<String>,
to: Option<String>,
},
MessageError {
error_type: String,
message: String,
message_id: Option<String>,
},
}Expand description
HTTP server event types
Represents the various events that can occur within the TAP HTTP server, including request handling, message processing, and server lifecycle events.
Variants§
ServerStarted
Server started event
ServerStopped
Server stopped event
RequestReceived
Request received event
Fields
ResponseSent
Response sent event
Fields
§
status: StatusCodeThe HTTP status code
MessageReceived
DIDComm message received event
Fields
MessageError
DIDComm message processing error event
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpEvent
impl RefUnwindSafe for HttpEvent
impl Send for HttpEvent
impl Sync for HttpEvent
impl Unpin for HttpEvent
impl UnsafeUnpin for HttpEvent
impl UnwindSafe for HttpEvent
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