mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Add missing class keyword to docs (#264)
This commit is contained in:
		
							parent
							
								
									92ea55773b
								
							
						
					
					
						commit
						13293a675d
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -28,7 +28,7 @@ For example this handler will only work on `/` path. By default the HTTP method | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| ```crystal | ```crystal | ||||||
| OnlyHandler < Kemal::Handler | class OnlyHandler < Kemal::Handler | ||||||
|   only ["/"] |   only ["/"] | ||||||
|    |    | ||||||
|   def call(env) |   def call(env) | ||||||
|  | @ -41,7 +41,7 @@ end | ||||||
| The handlers using `exclude` will work on the paths that isn't specified. For example this handler will work on any routes other than `/`. | The handlers using `exclude` will work on the paths that isn't specified. For example this handler will work on any routes other than `/`. | ||||||
| 
 | 
 | ||||||
| ```crystal | ```crystal | ||||||
| ExcludeHandler < Kemal::Handler | class ExcludeHandler < Kemal::Handler | ||||||
|   exclude ["/"] |   exclude ["/"] | ||||||
|    |    | ||||||
|   def call(env) |   def call(env) | ||||||
|  |  | ||||||
|  | @ -27,7 +27,7 @@ class Kemal::Handler < HTTP::Handler | ||||||
|   # |   # | ||||||
|   # However this is not done automatically. All handlers must inherit from `Kemal::Handler`. |   # However this is not done automatically. All handlers must inherit from `Kemal::Handler`. | ||||||
|   # |   # | ||||||
|   #     OnlyHandler < Kemal::Handler |   #     class OnlyHandler < Kemal::Handler | ||||||
|   #       only ["/"] |   #       only ["/"] | ||||||
|   # |   # | ||||||
|   #       def call(env) |   #       def call(env) | ||||||
|  | @ -46,7 +46,7 @@ class Kemal::Handler < HTTP::Handler | ||||||
|   # |   # | ||||||
|   # However this is not done automatically. All handlers must inherit from `Kemal::Handler`. |   # However this is not done automatically. All handlers must inherit from `Kemal::Handler`. | ||||||
|   # |   # | ||||||
|   #     ExcludeHandler < Kemal::Handler |   #     class ExcludeHandler < Kemal::Handler | ||||||
|   #       exclude ["/"] |   #       exclude ["/"] | ||||||
|   # |   # | ||||||
|   #       def call(env) |   #       def call(env) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue