src/ieu/Http/Router.php
public function request(string $path, int $methods, $handler)
	{
		$path = $this->currentContext->getPrefixedPath(
			trim($path, "\n\r\t/ ")
		);

		return $this->route(new Route($path, $methods), $handler);
	}
public function request(string $path, int $methods, $handler)
	{
		$path = $this->currentContext->getPrefixedPath(
			trim($path, "\n\r\t/ ")
		);

		return $this->route(new Route($path, $methods), $handler);
	}
public function request ( string $ path , int $ methods , $ handler ) { $ path = $ this -> currentContext -> getPrefixedPath ( trim ( $ path , "\n\r\t/ " ) ) ; return $ this -> route ( new Route ( $ path , $ methods ) , $ handler ) ; }
Adds a new route with given path to the current context
that accepts the given methods requests.

@param string $path
The route path
@param int $methods
The accepted route methods
@param callable $handler
The route handler

@return self
Adds a new route with given path to the current context that accepts the given methods requests .