Skip to main content

Module http

Module http 

Source
Expand description

Configures libcurl’s http handles.

Re-exportsΒ§

use std::path::PathBuf; πŸ”’
use std::str; πŸ”’
use std::time::Duration; πŸ”’
use anyhow::bail; πŸ”’
use curl::easy::Easy; πŸ”’
use curl::easy::Easy2; πŸ”’
use curl::easy::InfoType; πŸ”’
use curl::easy::SslOpt; πŸ”’
use curl::easy::SslVersion; πŸ”’
use tracing::debug; πŸ”’
use tracing::trace; πŸ”’
use crate::CargoResult; πŸ”’
use crate::GlobalContext; πŸ”’
use crate::context::ConfigRelativePathResolveExt; πŸ”’
use crate::context::SslVersionConfig; πŸ”’
use crate::context::SslVersionConfigRange; πŸ”’

StructsΒ§

HandleConfiguration
Configure a libcurl http handle with the defaults options for Cargo
HttpTimeout

FunctionsΒ§

configure_http_handle
debug πŸ”’
http_handle
Creates a new HTTP handle with appropriate global configuration for cargo.
http_handle_and_timeout
needs_custom_http_transport