pub struct EventHttpTarget {
pub target: String,
pub headers: HashMap<String, String>,
}Expand description
One declarative routing entry: the peer’s /api/event URL plus optional
per-target security headers (Java EventEmitter.eventHttpTargets +
eventHttpHeaders, folded into one struct).
Fields§
§target: StringThe peer endpoint, e.g. http://127.0.0.1:8085/api/event.
headers: HashMap<String, String>HTTP headers added to every forwarded call (e.g. authorization).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventHttpTarget
impl RefUnwindSafe for EventHttpTarget
impl Send for EventHttpTarget
impl Sync for EventHttpTarget
impl Unpin for EventHttpTarget
impl UnsafeUnpin for EventHttpTarget
impl UnwindSafe for EventHttpTarget
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