pub struct HttpMessageSender { /* private fields */ }Expand description
HTTP message sender implementation for sending messages over HTTP
This sender allows TAP nodes to send messages to other TAP nodes over HTTP, handling the necessary encoding, content types, and error handling.
§HTTP Endpoint Structure
Messages are sent to endpoints derived from the recipient’s DID, using a configurable base URL.
§Error Handling
The sender includes built-in error handling for common HTTP issues:
- Connection timeouts
- Request failures
- Invalid responses
- Rate limiting
§Configuration
The sender can be configured with:
- Base URL for the HTTP endpoint
- Timeout settings
- Retry policies
Implementations§
Trait Implementations§
Source§impl Debug for HttpMessageSender
impl Debug for HttpMessageSender
Source§impl MessageSender for HttpMessageSender
impl MessageSender for HttpMessageSender
Auto Trait Implementations§
impl Freeze for HttpMessageSender
impl !RefUnwindSafe for HttpMessageSender
impl Send for HttpMessageSender
impl Sync for HttpMessageSender
impl Unpin for HttpMessageSender
impl !UnwindSafe for HttpMessageSender
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