mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Rename return_with as halt for clear intention
This commit is contained in:
		
							parent
							
								
									cc78f4e02e
								
							
						
					
					
						commit
						d676b559d2
					
				
					 3 changed files with 9 additions and 7 deletions
				
			
		|  | @ -69,8 +69,8 @@ end | |||
| # Halt execution with the current context. | ||||
| # Returns 200 and an empty response by default. | ||||
| # | ||||
| #   return_with env, status_code: 403, response: "Forbidden" | ||||
| macro return_with(env, status_code = 200, response = "") | ||||
| #   halt env, status_code: 403, response: "Forbidden" | ||||
| macro halt(env, status_code = 200, response = "") | ||||
|   {{env}}.response.status_code = {{status_code}} | ||||
|   {{env}}.response.print {{response}} | ||||
|   next | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue