mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Merge pull request #79 from MakeNowJust/cache-params
Cache Context#params result
This commit is contained in:
		
						commit
						25c6fe78d9
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -2,10 +2,8 @@ | ||||||
| # information such as params, content_type e.g | # information such as params, content_type e.g | ||||||
| class HTTP::Server | class HTTP::Server | ||||||
|   class Context |   class Context | ||||||
|     getter params |  | ||||||
| 
 |  | ||||||
|     def params |     def params | ||||||
|       Kemal::ParamParser.new(@route, @request).parse |       @params ||= Kemal::ParamParser.new(@route, @request).parse | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     def redirect(url, status_code = 302) |     def redirect(url, status_code = 302) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue