pub struct HttpRequestParams {
pub method: String,
pub url: String,
pub headers: Vec<HttpHeader>,
pub body: Option<ByteChunk>,
pub timeout_ms: Option<u64>,
pub redirect_policy: HttpRedirectPolicy,
pub request_id: String,
pub stream_response: bool,
}Expand description
Executor-side HTTP request envelope.
This intentionally stays transport-shaped rather than MCP-shaped so callers can use it for Streamable HTTP, OAuth discovery, and future executor-owned HTTP probes without introducing one protocol method per higher-level use.
Fields§
§method: StringHTTP method, for example GET, POST, or DELETE.
url: StringAbsolute http:// or https:// URL.
headers: Vec<HttpHeader>Ordered request headers. Repeated header names are preserved.
body: Option<ByteChunk>Optional request body bytes.
timeout_ms: Option<u64>Request timeout in milliseconds.
Omitted or null disables the timeout. A number applies that exact
millisecond deadline.
redirect_policy: HttpRedirectPolicyWhether the executor should follow HTTP redirects.
request_id: StringCaller-chosen stream id for http/request/bodyDelta notifications.
The id must remain unique on a connection until the terminal body delta arrives, even if the caller stops reading the stream earlier. Buffered requests still send an id so callers can keep one consistent request envelope shape.
stream_response: boolReturn after response headers and stream the response body as deltas.
Trait Implementations§
Source§impl Clone for HttpRequestParams
impl Clone for HttpRequestParams
Source§fn clone(&self) -> HttpRequestParams
fn clone(&self) -> HttpRequestParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HttpRequestParams
impl Debug for HttpRequestParams
Source§impl<'de> Deserialize<'de> for HttpRequestParams
impl<'de> Deserialize<'de> for HttpRequestParams
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>,
impl Eq for HttpRequestParams
Source§impl PartialEq for HttpRequestParams
impl PartialEq for HttpRequestParams
Source§impl Serialize for HttpRequestParams
impl Serialize for HttpRequestParams
impl StructuralPartialEq for HttpRequestParams
Auto Trait Implementations§
impl Freeze for HttpRequestParams
impl RefUnwindSafe for HttpRequestParams
impl Send for HttpRequestParams
impl Sync for HttpRequestParams
impl Unpin for HttpRequestParams
impl UnsafeUnpin for HttpRequestParams
impl UnwindSafe for HttpRequestParams
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more