Static Methodhummingbird 2.5.0HummingbirdCore
http1(configuration:)
Return a HTTPServerBuilder
that will build a HTTP1 server
static func http1(configuration: HTTP1Channel.Configuration = .init()) -> HTTPServerBuilder
Parameters
- configuration
HTTP1 channel configuration
Returns
HTTPServerBuilder builder
Use in Application
initialization.
let app = Application(
router: router,
server: .http1(configuration: .init(idleTimeout: .seconds(30)))
)