module Server
Defined in:
server.cr
Constant Summary
-
AUTH_PREFIX_LEN =
32 + 8
-
DIGEST_ALG =
OpenSSL::Algorithm::SHA256
-
DIGEST_LEN =
32
Class Method Summary
-
.check_cookie_auth(cookie, rule, path = "/")
-
.digest_cookie_auth(data, time = Time.utc)
-
.gen_cookie(name, data, path = "#{@@conf.prefix}/")
-
.gen_cookie_auth(json, path = "/")
-
.gen_cookie_back(uri)
-
.handle_request(context)
-
.load_config(yaml = File.read("./config.yml"))
-
.refresh_cookie_auth(auth, path = "/")
-
.start_server(host = "", port = -1, unix = "", perm = -1)
-
.stop_server
Class Method Detail
def self.
check_cookie_auth(cookie, rule, path =
"/")
#
def self.
digest_cookie_auth(data, time =
Time.utc)
#
def self.
gen_cookie(name, data, path =
"#{@@conf.prefix
}/")
#
def self.
gen_cookie_auth(json, path =
"/")
#
def self.
gen_cookie_back(uri)
#
def self.
handle_request(context)
#
def self.
load_config(yaml =
File.read(
"./config.yml"))
#
def self.
refresh_cookie_auth(auth, path =
"/")
#
def self.
start_server(host =
"", port =
-1, unix =
"", perm =
-1)
#