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: usizeThe size limit in bytes of the response body. The default value is 1 * 1024 * 1024 (1 MiB).
max_redirect_count: usizeThe count limit of redirection times. The default value is 5.
max_connection_time: u64The time limit in milliseconds of a connection. 0 means the time is unlimited. The default value is 60000 (1 minute).
allow_local: boolWhether to allow to request local URL resources. The default value is true.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HttpRequestOptionsimpl Send for HttpRequestOptionsimpl Sync for HttpRequestOptionsimpl Unpin for HttpRequestOptionsimpl UnwindSafe for HttpRequestOptionsBlanket Implementations
Mutably borrows from an owned value. Read more