Liking cljdoc? Tell your friends :D

figwheel.server.ring


best-guess-script-pathclj

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

default-index-htmlclj

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

default-optionsclj

source

default-stackclj

(default-stack handler options)
source

fix-index-mime-typeclj

(fix-index-mime-type handler)
source

handle-async-corsclj

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

handle-firstclj

(handle-first & handlers)
source

index-htmlclj

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

not-foundclj

(not-found r)
source

resource-root-indexclj

(resource-root-index handler root-s)
source

stackclj

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

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])))
sourceraw docstring

wrap-figwheel-defaultsclj

(wrap-figwheel-defaults ring-handler)
source

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.
sourceraw docstring

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

× close