All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.serverless.ServerlessConfig.kt Maven / Gradle / Ivy

There is a newer version: 5.45.2.0
Show newest version
package org.http4k.serverless

import org.http4k.server.Http4kServer
import java.io.InputStream

/**
 * Launching point for custom Serverless runtimes.
 */
fun interface ServerlessConfig {
    fun asServer(fn: FnLoader): Http4kServer
}

fun  FnHandler.asServer(config: ServerlessConfig) = config.asServer { this }

fun  FnLoader.asServer(config: ServerlessConfig) = config.asServer(this)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy