http1(configuration:)

Return a HTTPServerBuilder that will build a HTTP1 server

HTTPServerBuilder.swift:86
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)))
)