Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify handler-fn to support :async? option in jetty server. #11

Open
baskeboler opened this issue Sep 20, 2021 · 0 comments
Open

Modify handler-fn to support :async? option in jetty server. #11

baskeboler opened this issue Sep 20, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Projects

Comments

@baskeboler
Copy link

Should look something like this:

(defn handler-fn
  [{:keys [controller-interceptors
           router-interceptors]
    :as   app-config}
   system
   routes]
  (fn handle*
    ([http-request]
     (->
      (xiana/flow->
       (state-build app-config system routes http-request)
       (runner/run router-interceptors route)
       (additional-interceptors controller-interceptors run-controller))
      (xiana/extract)
      (get :response)))
    ([request respond _]
     (respond (handle* request)))))
@baskeboler baskeboler created this issue from a note in Xiana (To do) Sep 20, 2021
@baskeboler baskeboler added enhancement New feature or request good first issue Good for newcomers labels Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Xiana
To do
Development

No branches or pull requests

1 participant