MaxResponseBytesRequestExtension

Trait MaxResponseBytesRequestExtension 

Source
pub trait MaxResponseBytesRequestExtension: Sized {
    // Required methods
    fn set_max_response_bytes(&mut self, value: u64);
    fn get_max_response_bytes(&self) -> Option<u64>;

    // Provided method
    fn max_response_bytes(self, value: u64) -> Self { ... }
}
Expand description

Add support for max response bytes.

Required Methods§

Source

fn set_max_response_bytes(&mut self, value: u64)

Set the max response bytes.

If provided, the value must not exceed 2MB (2_000_000B). The call will be charged based on this parameter. If not provided, the maximum of 2MB will be used.

Source

fn get_max_response_bytes(&self) -> Option<u64>

Retrieves the current max response bytes value, if any.

Provided Methods§

Source

fn max_response_bytes(self, value: u64) -> Self

Convenience method to use the builder pattern.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl MaxResponseBytesRequestExtension for Builder

Source§

impl MaxResponseBytesRequestExtension for HttpRequestArgs

Source§

impl<T> MaxResponseBytesRequestExtension for Request<T>

Implementors§