pub struct HttpcCfg {
pub der_ca: Vec<Vec<u8>>,
pub pem_ca: Vec<Vec<u8>>,
pub cache_buffers: usize,
pub dns_servers: Vec<SocketAddr>,
}
Expand description
Top level configuration for mio_http.
Fields
der_ca: Vec<Vec<u8>>
Extra root certificates in der format.
pem_ca: Vec<Vec<u8>>
Extra root certificates in pem format.
cache_buffers: usize
Default: 8
Max 8K buffers to keep cached for subsequent requests. Every request requires 2.
dns_servers: Vec<SocketAddr>
Set DNS servers if library can not easily get them from system (like Android). macOS, iOS and unix with /etc/resolv.conf are supported ATM. If none provided and library can’t get them, google DNS servers (8.8.8.8:53, 8.8.4.4:53) will be used.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HttpcCfg
impl Send for HttpcCfg
impl Sync for HttpcCfg
impl Unpin for HttpcCfg
impl UnwindSafe for HttpcCfg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more