Liking cljdoc? Tell your friends :D

figwheel.server.ring


best-guess-script-pathclj

(best-guess-script-path output-to)

default-index-htmlclj

(default-index-html handler html & [force-index?])

default-optionsclj


default-stackclj

(default-stack handler options)

fix-index-mime-typeclj

(fix-index-mime-type handler)

handle-async-corsclj

(handle-async-cors handler
                   request
                   respond'
                   raise'
                   access-control
                   response-handler)

handle-firstclj

(handle-first & handlers)

index-htmlclj

(index-html {:keys [output-to body]})

not-foundclj

(not-found r)

resource-root-indexclj

(resource-root-index handler root-s)

stackclj

(stack ring-handler {:keys [:figwheel.server.ring/dev responses] :as config})

wrap-async-corsclj

(wrap-async-cors handler & access-control)

Middleware that adds Cross-Origin Resource Sharing headers. (def handler (-> routes (wrap-cors :access-control-allow-origin #"http://example.com" :access-control-allow-methods [:get :put :post :delete])))

Middleware that adds Cross-Origin Resource Sharing headers.
(def handler
  (-> routes
      (wrap-cors
       :access-control-allow-origin #"http://example.com"
       :access-control-allow-methods [:get :put :post :delete])))
raw docstring

wrap-figwheel-defaultsclj

(wrap-figwheel-defaults ring-handler)

wrap-no-cacheclj

(wrap-no-cache handler)

Add 'Cache-Control: no-cache' to responses. This allows the client to cache the response, but requires it to check with the server every time to make sure that the response is still valid, before using the locally cached file.

This avoids stale files being served because of overzealous browser caching, while still speeding up load times by caching files.

Add 'Cache-Control: no-cache' to responses.
This allows the client to cache the response, but
requires it to check with the server every time to make
sure that the response is still valid, before using
the locally cached file.

This avoids stale files being served because of overzealous
browser caching, while still speeding up load times by caching
files.
raw docstring

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

× close