pub struct ContentLengthInterceptor { /* private fields */ }Expand description
Interceptor that enforces maximum content length
Implementations§
Trait Implementations§
Source§impl RequestInterceptor for ContentLengthInterceptor
impl RequestInterceptor for ContentLengthInterceptor
Source§fn intercept_request<'life0, 'async_trait>(
&'life0 self,
request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn intercept_request<'life0, 'async_trait>(
&'life0 self,
request: LlmRequest,
) -> Pin<Box<dyn Future<Output = Result<LlmRequest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Intercept and potentially modify a request before it’s sent to the provider
Source§impl ResponseInterceptor for ContentLengthInterceptor
impl ResponseInterceptor for ContentLengthInterceptor
Source§fn intercept_response<'life0, 'async_trait>(
&'life0 self,
response: LlmResponse,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn intercept_response<'life0, 'async_trait>(
&'life0 self,
response: LlmResponse,
) -> Pin<Box<dyn Future<Output = Result<LlmResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Intercept and potentially modify a response after it’s received from the provider
Auto Trait Implementations§
impl Freeze for ContentLengthInterceptor
impl RefUnwindSafe for ContentLengthInterceptor
impl Send for ContentLengthInterceptor
impl Sync for ContentLengthInterceptor
impl Unpin for ContentLengthInterceptor
impl UnwindSafe for ContentLengthInterceptor
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