Skip to main content

Module http

Module http 

Source
Expand description

HTTP client factory with mTLS and retry support.

All EDI-Energy API-Webdienste must use mutual TLS with an EMT.API certificate issued by SM-PKI. This module provides a typed configuration struct and a builder function that produce a properly configured [reqwest::Client].

For local / integration testing, TlsConfig::insecure creates a client that skips certificate verification — never use in production.

Structs§

RetryPolicy
Retry policy for idempotent HTTP requests.
TlsConfig
TLS configuration for the reqwest::Client.