Module http

Module http 

Source
Expand description

HTTP Interface and InterfaceConfig implementation

§Server Configuration Example

§Configuration for Localhost

[[server.interface]]
type = "http"
host = "http://localhost"
port = 8080

§Configuration with TLS

[[server.interface]]
type = "http"
host = "example.com"
port = 8080
tls = true
tls_cert_path = "/path/to/certificate/cert.pem"
tls_key_path = "/path/to/private/key/key.pem"

§Client Configuration Example

[[client.interface]]
type = "http"
host = "127.0.0.1"
port = 8080

Structs§

HttpSocketInterface
Data structure to represent the HTTP Socket Interface.