mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Update instance types
This commit is contained in:
		
							parent
							
								
									40ab34c63d
								
							
						
					
					
						commit
						2b9152ff79
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -2,7 +2,7 @@ require "colorize" | |||
| require "http" | ||||
| 
 | ||||
| class Kemal::CommonLogHandler < Kemal::BaseLogHandler | ||||
|   @handler : IO::FileDescriptor+ | ||||
|   @handler : IO::FileDescriptor | ||||
|   getter handler | ||||
| 
 | ||||
|   def initialize(@env) | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ module Kemal | |||
|   class Config | ||||
|     INSTANCE = Config.new | ||||
|     HANDLERS = [] of HTTP::Handler | ||||
|     @ssl : OpenSSL::SSL::Context | ||||
|     @ssl : OpenSSL::SSL::Context? | ||||
| 
 | ||||
|     property host_binding, ssl, port, env, public_folder, logging, | ||||
|       always_rescue, serve_static, run | ||||
|  | @ -18,7 +18,7 @@ module Kemal | |||
|       @error_handler = nil | ||||
|       @always_rescue = true | ||||
|       @run = false | ||||
|       @ssl = uninitialized OpenSSL::SSL::Context | ||||
|       @ssl = nil | ||||
|     end | ||||
| 
 | ||||
|     def logger | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ class Kemal::ParamParser | |||
|   URL_ENCODED_FORM = "application/x-www-form-urlencoded" | ||||
|   APPLICATION_JSON = "application/json" | ||||
| 
 | ||||
|   def initialize(@request : HTTP::Request, @url_params : String? = nil , @override_method : String? = nil) | ||||
|   def initialize(@request : HTTP::Request) | ||||
|     @url = {} of String => String | ||||
|     @query = {} of String => String | ||||
|     @body = {} of String => String | ||||
|  |  | |||
|  | @ -7,6 +7,6 @@ class Kemal::Route | |||
|   @method : String | ||||
| 
 | ||||
|   def initialize(@method, @path : String, &handler : HTTP::Server::Context -> _) | ||||
|     @handler = ->(context : HTTP::Server::Context){ handler.call(context).to_s } | ||||
|     @handler = ->(context : HTTP::Server::Context) { handler.call(context).to_s } | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue