amber/serve/serve_option
Types
pub type ServeOption {
Port(Int)
Hostname(String)
Cert(String)
Key(String)
ReusePort
Signal(abort_signal.AbortSignal)
OnListen(fn(net_addr.NetAddr) -> Nil)
OnError(fn(error.Error) -> response.Response)
}
Constructors
-
Port(Int) -
Hostname(String) -
Cert(String)PEM-encoded TLS certificate for HTTPS.
-
Key(String)PEM-encoded TLS private key for HTTPS.
-
ReusePort -
Signal(abort_signal.AbortSignal) -
OnListen(fn(net_addr.NetAddr) -> Nil) -
OnError(fn(error.Error) -> response.Response)