HTTPSenderConfiguration Class

HTTP sender configuration.

This is composed of generic HTTP configuration, and could be use as a common HTTP configuration format.

Inheritance
builtins.object
HTTPSenderConfiguration

Constructor

HTTPSenderConfiguration(filepath=None)

Parameters

filepath
str
default value: None

Path to existing config file (optional).

Methods

load

Load configuration from existing file.

save

Save current configuration to file.

load

Load configuration from existing file.

load(filepath: str) -> None

Parameters

filepath
str
Required

Path to existing config file.

Exceptions

ValueError if supplied config file is invalid.

save

Save current configuration to file.

save(filepath: str) -> None

Parameters

filepath
str
Required

Path to file where settings will be saved.

Exceptions

ValueError if supplied filepath cannot be written to.