File: README.md

package info (click to toggle)
rabbitmq-server 3.3.5-1.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 12,004 kB
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (25 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
rabbitmq-web-dispatch
---------------------

rabbitmq-web-dispatch is a thin veneer around mochiweb that provides the
ability for multiple applications to co-exist on mochiweb
listeners. Applications can register static docroots or dynamic
handlers to be executed, dispatched by URL path prefix.

See http://www.rabbitmq.com/mochiweb.html for information on
configuring web plugins.

The most general registration procedure is
`rabbit_web_dispatch:register_context_handler/5`. This takes a callback
procedure of the form

    loop(Request) ->
      ...

The module `rabbit_webmachine` provides a means of running more than
one webmachine in a VM, and understands rabbitmq-web-dispatch contexts. To
use it, supply a dispatch table term of the kind usually given to
webmachine in the file `priv/dispatch.conf`.

`setup/{1,2}` in the same module allows some global configuration of
webmachine logging and error handling.