struct HTTPNamespace for HTTP server construction helpers.
Methods
static func server() -> HttpServer
Creates an empty HttpServer using ordinary lower-case function naming.
View Source
pub static func server() -> HttpServer {
HttpServer()
}static func Server() -> HttpServer
Compatibility alias for the original HTTP.Server() DSL spelling.
View Source
pub static func Server() -> HttpServer {
HTTP.server()
}