class Inquirer::Server
- Inquirer::Server
- Reference
- Object
Included Modules
Defined in:
inquirer/server.crConstant Summary
-
RX_VEN_DISTINCT =
/^distinct\s+(\w[\.\w]*(?<!\.))(;|;?$)/
-
A regex that matches Ven distinct statement, assuming it is at the start of the string.
-
RX_VEN_IGNORES =
/^(?:[ \n\r\t]+|#(?:[ \t][^\n]*|\n+))/
-
A regex that matches the characters Ven reader ignores, assuming they are at the start of the string.
Constructors
-
.new(config : Config, daemon : Daemon)
Makes a Server from the given config.
Instance Method Summary
-
#execute(request : Request, log = true)
Executes a command under request.
-
#respond_to(payload : String | Nil)
Parses the given payload and formulates a response.
-
#serve
Starts serving the API.
Constructor Detail
Makes a Server from the given config.
daemon is the daemon that the new server will control.
Instance Method Detail
Executes a command under request.
Will log the command if log unless log is false.
Returns the appropriate Response
.