Skip to main content

PluginRequestBroker

Trait PluginRequestBroker 

Source
pub trait PluginRequestBroker: Send + Sync {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        request: PluginHttpRequest,
    ) -> Pin<Box<dyn Future<Output = Result<PluginHttpResponse, PluginError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Host-owned transport capability used by plugin contexts.

Implementations must not follow redirects or retry requests. They must stop body collection at PluginHttpRequest::max_response_body_bytes. The context independently checks the request and final response origin, capture metadata, and immutable accounting envelope.

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, request: PluginHttpRequest, ) -> Pin<Box<dyn Future<Output = Result<PluginHttpResponse, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes one already-scoped bodyless request.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§