lmug-elli-adptr

lmug-adptr

An lmug adaptor for the Elli web server.

call-handler/1

(request)

Equivalent to call-handler/2 with the empty list as opts.

call-handler/2

((= (tuple 'request _ _ _ uri _ _ _ _ _ _ method _ _ _ _ req _) request) _opts)

Given an lmug request, call the specified handler on it and
return the resultant response.

If the handler cannot be found, return 'ignore.

N.B. opts is currently ignored.

convert-request/1

(req)

Equivalent to convert-request/2 with the empty list as opts.

convert-request/2

(req _opts)

Given an Elli #req{}, return an lmug #request{}.

N.B. opts is currently ignored.

convert-response/1

(req)

Equivalent to convert-response/2 with the empty list as opts.

convert-response/2

((= (tuple 'response status headers body) response) _opts)