pub struct PluginHttpRequest { /* private fields */ }Expand description
Immutable request passed to the host-owned broker.
Implementations§
Source§impl PluginHttpRequest
impl PluginHttpRequest
Sourcepub const fn method(&self) -> PluginHttpMethod
pub const fn method(&self) -> PluginHttpMethod
Request method.
Sourcepub const fn max_response_body_bytes(&self) -> u64
pub const fn max_response_body_bytes(&self) -> u64
Maximum response bytes the broker may read and retain for this request.
The host derives this from both the per-response ceiling and the invocation-wide unreserved remainder. Brokers must stop body collection at this boundary and mark the response truncated when more data exists.
Sourcepub fn cancellation(&self) -> &CancellationToken
pub fn cancellation(&self) -> &CancellationToken
Invocation-scoped cancellation signal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginHttpRequest
impl RefUnwindSafe for PluginHttpRequest
impl Send for PluginHttpRequest
impl Sync for PluginHttpRequest
impl Unpin for PluginHttpRequest
impl UnsafeUnpin for PluginHttpRequest
impl UnwindSafe for PluginHttpRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Mutably borrows from an owned value. Read more