Skip to main content

Module http_stack

Module http_stack 

Source
Expand description

Translates the typed HTTP configuration from defect-config into a defect_http::HttpStackConfig.

defect-config avoids a direct dependency on defect-http to keep the crate dependency one-way (see the comment on defect_config::HttpClientConfig). Performing this translation during CLI assembly is the most natural place — the same stack config is shared by three providers, and any proxy URI parsing failures are reported centrally here.

Functions§

build_http_stack_config
Construct a defect_http::HttpStackConfig from the typed config.