Struct mio_httpc::HttpcCfg [−][src]
pub struct HttpcCfg { pub der_ca: Vec<Vec<u8>>, pub pem_ca: Vec<Vec<u8>>, pub cache_buffers: usize, }
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.
Methods
impl HttpcCfg
[src]
impl HttpcCfg
pub fn new() -> HttpcCfg
[src]
pub fn new() -> HttpcCfg
pub fn certs_from_path(path: &str) -> Result<HttpcCfg>
[src]
pub fn certs_from_path(path: &str) -> Result<HttpcCfg>
Will read pem files (extensions .crt or .pem) from path. Path can be to file or folder.