[][src]Struct easy_http_request::HttpRequestOptions

pub struct HttpRequestOptions {
    pub max_response_body_size: usize,
    pub max_redirect_count: usize,
    pub max_connection_time: u64,
    pub allow_local: bool,
}

Options for HttpRequest.

Fields

max_response_body_size: usize

The size limit in bytes of the response body. The default value is 1 * 1024 * 1024 (1 MiB).

max_redirect_count: usize

The count limit of redirection times. The default value is 5.

max_connection_time: u64

The time limit in milliseconds of a connection. 0 means the time is unlimited. The default value is 60000 (1 minute).

allow_local: bool

Whether to allow to request local URL resources. The default value is true.

Trait Implementations

impl Default for HttpRequestOptions[src]

impl Clone for HttpRequestOptions[src]

impl Debug for HttpRequestOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any