
org.http4k.serverless.gcfServerlessCoreExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-serverless-gcf Show documentation
Show all versions of http4k-serverless-gcf Show documentation
Http4k Serverless support for Google Cloud Functions
package org.http4k.serverless
import com.google.cloud.functions.Context
import org.http4k.format.AutoMarshalling
import org.http4k.format.Moshi
/**
* Convenience DSL for constructing polymorphic GCF FnHandlers
*/
inline fun FnLoader(
autoMarshalling: AutoMarshalling = Moshi,
noinline makeHandler: (Map) -> FnHandler
) = AutoMarshallingFnLoader(autoMarshalling, In::class, makeHandler)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy