lmug-elli-adptr
lmug-adptr
An lmug adaptor for the Elli web server.
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/2
(req _opts)
Given an Elli #req{}
, return an lmug #request{}
.
N.B. opts
is currently ignored.
convert-response/2
((= (tuple 'response status headers body) response) _opts)
Given an lmug #response{}
, return an Elli response tuple.