Struct easy_http_request::HttpRequestOptions[][src]

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.