serveWebhook
suspend fun serveWebhook(wait: Boolean = true, serverBuilder: suspend ServerBuilder.() -> Unit = {}): EmbeddedServer<NettyApplicationEngine, NettyApplicationEngine.Configuration>(source)
Creates and starts a Ktor server for webhook endpoints.
Return
the configured server instance.
Parameters
wait
whether the function should wait for the server to start
serverBuilder
a lambda to configure the server, if not provided, env configuration will be used.