Liking cljdoc? Tell your friends :D

holy-lambda logo

Compatibility

  • AWS ApiGateway Lambda Integration
  • Java Version >= 11
  • GraalVM Native Image >= 21.2.0
  • Holy Lambda >= 0.6.0

Usage

  • With plain ring

    (ns core
     (:require
      [fierycod.holy-lambda-ring-adapter.core :as hlra]
      [fierycod.holy-lambda.core :as h])
    
    (defn ring-handler
      [request]
      {:status 200
       :headers {}
       :body \"Hello World\"}
    
    (def HttpApiProxyGateway (hlra/wrap-hl-req-res-model ring-handler))
    
    (h/entrypoint [#'HttpApiProxyGateway])
    
  • With Reitit & Muuntaja reitit

    (ns core
     (:require
      [fierycod.holy-lambda-ring-adapter.core :as hlra]
      [fierycod.holy-lambda.core :as h])
    
    (def muuntaja-ring-handler
      (ring/ring-handler
        (ring/router
          routes
          {:data {:muuntaja   instance
                  :coercion   coerction
                  :middleware middlewares}})))
    
    (def HttpApiProxyGateway (hlra/wrap-hl-req-res-model muuntaja-ring-handler))
    
    (h/entrypoint [#'HttpApiProxyGateway])
    

Companies & Inviduals using Holy Lambda Ring Adapter?

Documentation

The holy-lambda documentation is available here.

Current Version

Clojars Project

Getting Help

Get help on Slack

License

Copyright © 2021 Karol Wojcik aka Fierycod

Released under the MIT license.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close