Skip to content

config_schema

config_schema ¤

Classes:

Name Description
HttpConfig

HttpConfig is a configuration class for the HTTP protocol.

HttpConfig dataclass ¤

HttpConfig(
    name: str = "HTTP",
    version: VersionEnum = random,
    role: RoleEnum = server,
    target: str | None = None,
    protocol_type: ProtocolType = client_server,
)

Bases: ProtocolConfig

HttpConfig is a configuration class for the HTTP protocol.

Attributes:

Name Type Description
name str

The name of the protocol, default is "HTTP".

version VersionEnum

The protocol version, default is VersionEnum.random.

role RoleEnum

The role in the protocol, either server or client, default is RoleEnum.server.

target str | None

An optional target service name, default is None.

protocol_type ProtocolType

The type of protocol, default is ProtocolType.client_server.