pub struct HttpRequestInput {
pub url: String,
pub method: HttpMethod,
pub headers: HashMap<String, String>,
pub body: Option<Value>,
}Expand description
Input for an HTTP request — matches the tool parameter schema.
Fields§
§url: StringAbsolute URL. May contain $VAR_NAME for variable substitution.
method: HttpMethodHTTP method.
headers: HashMap<String, String>Request headers. May contain $VAR_NAME for variable substitution.
Set x-connection-id to inject an OAuth Bearer token.
body: Option<Value>Request body. Sent as JSON if no Content-Type is set.
May contain $VAR_NAME for variable substitution.
Trait Implementations§
Source§impl Clone for HttpRequestInput
impl Clone for HttpRequestInput
Source§fn clone(&self) -> HttpRequestInput
fn clone(&self) -> HttpRequestInput
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpRequestInput
impl Debug for HttpRequestInput
Source§impl<'de> Deserialize<'de> for HttpRequestInput
impl<'de> Deserialize<'de> for HttpRequestInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpRequestInput
impl RefUnwindSafe for HttpRequestInput
impl Send for HttpRequestInput
impl Sync for HttpRequestInput
impl Unpin for HttpRequestInput
impl UnsafeUnpin for HttpRequestInput
impl UnwindSafe for HttpRequestInput
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