module Server

Defined in:

server.cr

Constant Summary

AUTH_PREFIX_LEN = 32 + 8
DIGEST_ALG = OpenSSL::Algorithm::SHA256
DIGEST_LEN = 32

Class Method Summary

Class Method Detail

def self.check_cookie_auth(cookie, rule, path = "/") #

[View source]
def self.digest_cookie_auth(data, time = Time.utc) #

[View source]
def self.gen_cookie(name, data, path = "#{@@conf.prefix}/") #

[View source]
def self.gen_cookie_auth(json, path = "/") #

[View source]
def self.gen_cookie_back(uri) #

[View source]
def self.handle_request(context) #

[View source]
def self.load_config(yaml = File.read("./config.yml")) #

[View source]
def self.refresh_cookie_auth(auth, path = "/") #

[View source]
def self.start_server(host = "", port = -1, unix = "", perm = -1) #

[View source]
def self.stop_server #

[View source]