Liking cljdoc? Tell your friends :D

ring.server.standalone

Functions to start a standalone Ring server.

Functions to start a standalone Ring server.
raw docstring

serveclj

(serve handler)
(serve handler options)

Start a web server to run a handler. Takes the following options: :port - the port to run the server on :join? - if true, wait for the server to stop :init - a function to run before the server starts :destroy - a function to run after the server stops :open-browser? - if true, open a web browser after the server starts :browser-uri - the path to browse to when opening a browser :stacktraces? - if true, display stacktraces when an exception is thrown :stacktrace-middleware - a middleware that handles stacktraces :auto-reload? - if true, automatically reload source files :reload-paths - seq of src-paths to reload on change - defaults to ["src"] :auto-refresh? - if true, automatically refresh browser when source changes :refresh-paths - seq of src-paths to refresh browser on change - defaults to ["src" "resources"]

If join? is false, a Server object is returned.

Start a web server to run a handler. Takes the following options:
  :port                  - the port to run the server on
  :join?                 - if true, wait for the server to stop
  :init                  - a function to run before the server starts
  :destroy               - a function to run after the server stops
  :open-browser?         - if true, open a web browser after the server starts
  :browser-uri           - the path to browse to when opening a browser
  :stacktraces?          - if true, display stacktraces when an exception is thrown
  :stacktrace-middleware - a middleware that handles stacktraces
  :auto-reload?          - if true, automatically reload source files
  :reload-paths          - seq of src-paths to reload on change - defaults to ["src"]
  :auto-refresh?         - if true, automatically refresh browser when source changes
  :refresh-paths         - seq of src-paths to refresh browser on change - defaults to ["src" "resources"]

If join? is false, a Server object is returned.
sourceraw docstring

server-hostclj

(server-host server)

Get the host the server is bound to.

Get the host the server is bound to.
sourceraw docstring

server-portclj

(server-port server)

Get the port the server is listening on.

Get the port the server is listening on.
sourceraw docstring

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

× close