Module Server/RESTSCL
This module is undocumented. This is a list of its definitions.
start :: String -> Integer -> <Proc> ()
Starts the HTTP server that exposes the SCL API, under the path SCLAPI,
on the given port. The server runs in a background thread, so this returns
at once.
The first argument is the token that every request must present in its
Authorization header, in the form SCLRESTServer-Bearer <token>; a
request without it is answered with 401.
There is only one server per process. If one is already running, this call
leaves it as it is and the token and port given here have no effect.
stop :: <Proc> ()
Stops the server started by start. Does nothing if none was started.
|