mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Don't require yaml
This commit is contained in:
parent
9de66e2a60
commit
ffc3d6d224
4 changed files with 0 additions and 5 deletions
|
@ -1,5 +1,3 @@
|
|||
require "yaml"
|
||||
|
||||
module Kemal
|
||||
class Config
|
||||
INSTANCE = Config.new
|
||||
|
|
|
@ -3,7 +3,6 @@ require "json"
|
|||
# ParamParser parses the request contents including query_params and body
|
||||
# and converts them into a params hash which you can within the environment
|
||||
# context.
|
||||
|
||||
alias AllParamTypes = Nil | String | Int64 | Float64 | Bool | Hash(String, JSON::Type) | Array(JSON::Type)
|
||||
|
||||
class Kemal::ParamParser
|
||||
|
|
|
@ -3,7 +3,6 @@ require "radix"
|
|||
|
||||
# Kemal::RouteHandler is the main handler which handles all the HTTP requests. Routing, parsing, rendering e.g
|
||||
# are done in this handler.
|
||||
|
||||
class Kemal::RouteHandler < HTTP::Handler
|
||||
INSTANCE = new
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
# Kemal::WebSocketHandler is used for each define WebSocket route.
|
||||
# For each WebSocket route a new handler is created and registered to global handlers.
|
||||
|
||||
class Kemal::WebSocketHandler < HTTP::WebSocketHandler
|
||||
def initialize(@path, &@proc : HTTP::WebSocket ->)
|
||||
Kemal.config.add_ws_handler self
|
||||
|
|
Loading…
Reference in a new issue