pub struct HttpTransport { /* private fields */ }Expand description
POSTs a run to an HTTP endpoint and streams the response.
Implementations§
Source§impl HttpTransport
impl HttpTransport
Sourcepub fn new(url: impl AsRef<str>) -> Result<Self>
pub fn new(url: impl AsRef<str>) -> Result<Self>
A transport pointed at an agent’s run endpoint, with default settings.
§Errors
Error::Config when the URL does not parse, or the HTTP client cannot
be built.
Sourcepub fn builder(url: impl AsRef<str>) -> HttpTransportBuilder
pub fn builder(url: impl AsRef<str>) -> HttpTransportBuilder
A builder, for headers, timeouts, or a pre-configured client.
Trait Implementations§
Source§impl Clone for HttpTransport
impl Clone for HttpTransport
Source§fn clone(&self) -> HttpTransport
fn clone(&self) -> HttpTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpTransport
impl Debug for HttpTransport
Source§impl Transport for HttpTransport
impl Transport for HttpTransport
Source§fn run(&self, input: RunAgentInput) -> TransportFuture
fn run(&self, input: RunAgentInput) -> TransportFuture
Starts a run and connects to its event stream. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HttpTransport
impl !UnwindSafe for HttpTransport
impl Freeze for HttpTransport
impl Send for HttpTransport
impl Sync for HttpTransport
impl Unpin for HttpTransport
impl UnsafeUnpin for HttpTransport
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