pub struct HttpAgent { /* private fields */ }Expand description
Drives an external agent over HTTP/1.1 — one request/response per decision.
Targets a plain-HTTP host:port endpoint that accepts POST /decide with a
JSON MarketObservation body and returns a JSON Decision. Loopback /
in-sandbox only (no TLS), so this is a dependency-free std::net client — the
benchmark sim keeps its minimal, audited dependency tree. As with the stdio
transport, any connection/parse error degrades to a hold (never panics).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpAgent
impl RefUnwindSafe for HttpAgent
impl Send for HttpAgent
impl Sync for HttpAgent
impl Unpin for HttpAgent
impl UnsafeUnpin for HttpAgent
impl UnwindSafe for HttpAgent
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