3
									
								
								gin.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								gin.go
									
									
									
									
									
								
							@ -264,8 +264,9 @@ func (engine *Engine) NoRoute(handlers ...HandlerFunc) {
 | 
			
		||||
	engine.rebuild404Handlers()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NoMethod sets the handlers called when... TODO.
 | 
			
		||||
// NoMethod sets the handlers called when NoMethod.
 | 
			
		||||
func (engine *Engine) NoMethod(handlers ...HandlerFunc) {
 | 
			
		||||
	engine.HandleMethodNotAllowed = true
 | 
			
		||||
	engine.noMethod = handlers
 | 
			
		||||
	engine.rebuild405Handlers()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user