Liking cljdoc? Tell your friends :D

ronda.server


makeclj

(make spec)

Create a system that connects components according to the given spec and exposes an HTTP interface.

  • :system: a component system to inject into the handler,
  • :configuration: a configuration component to inject into the system,
  • :routes: a function that takes the running system and produces a ronda route descriptor,
  • :endpoints: a function that takes the running system and produces a ronda endpoint map,
  • :middlewares: a function that takes a Ring handler and the running system and attaches middlewares to the handler.

The configuration can be used to provide HTTP server settings using a :ronda.server/httpd key. Please refer to aleph's start-server documentation to see which options can be used.

The server's default port is 3000.

Create a system that connects components according to the given spec and
exposes an HTTP interface.

- `:system`: a component system to inject into the handler,
- `:configuration`: a configuration component to inject into the system,
- `:routes`: a function that takes the running system and produces a ronda
  route descriptor,
- `:endpoints`: a function that takes the running system and produces a ronda
  endpoint map,
- `:middlewares`: a function that takes a Ring handler and the running system
  and attaches middlewares to the handler.

The configuration can be used to provide HTTP server settings using
a `:ronda.server/httpd` key. Please refer to aleph's `start-server`
documentation to see which options can be used.

The server's default port is 3000.
sourceraw docstring

make-handlerclj

(make-handler spec)

Create the full, wrapped handler based on the given spec (see make).

Create the full, wrapped handler based on the given spec (see [[make]]).
sourceraw docstring

portclj

(port server)

Get the port of a running server created with make.

Get the port of a _running_ server created with [[make]].
sourceraw docstring

runclj

(run spec)

See make. Will directly start up the component.

See [[make]]. Will directly start up the component.
sourceraw docstring

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

× close