class Inquirer::Server

Included Modules

Defined in:

inquirer/server.cr

Constant 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

Instance Method Summary

Constructor Detail

def self.new(config : Config, daemon : Daemon) #

Makes a Server from the given config.

daemon is the daemon that the new server will control.


[View source]

Instance Method Detail

def execute(request : Request, log = true) #

Executes a command under request.

Will log the command if log unless log is false.

Returns the appropriate Response.


[View source]
def respond_to(payload : String | Nil) #

Parses the given payload and formulates a response.


[View source]
def serve #

Starts serving the API.


[View source]