@whi/cf-routing - v0.7.0
    Preparing search index...

    Function buildResponse

    • Build a Response from handler return value and context settings.

      Parameters

      • result: any

        The return value from a route handler

      • ctx: ResponseBuildContext

        The request context

      • OptionalcorsConfig: CorsConfig<any, any>

        Optional CORS configuration

      • OptionalcorsCtx: CorsOriginContext<any, any>

        Optional context for resolving dynamic CORS origins

      Returns Response

      A properly formatted Response