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
Auto Trait Implementations
impl RefUnwindSafe for HttpRequestOptions
impl Send for HttpRequestOptions
impl Sync for HttpRequestOptions
impl Unpin for HttpRequestOptions
impl UnwindSafe for HttpRequestOptions
Blanket Implementations
Mutably borrows from an owned value. Read more