public function run(
        string $method,
        string $uri,
        array $headers,
        string $body
    ) {
        if ($this->router === null) {
            return;
        }

        try {
            $response = $this->router->run($method, $uri, $headers, $body);
            if ($response !== null) {
                $response->output();
            }
        } catch (RouterException $e) {
            $e->getResponse()->output();
        }
    }
public function run(
        string $method,
        string $uri,
        array $headers,
        string $body
    ) {
        if ($this->router === null) {
            return;
        }

        try {
            $response = $this->router->run($method, $uri, $headers, $body);
            if ($response !== null) {
                $response->output();
            }
        } catch (RouterException $e) {
            $e->getResponse()->output();
        }
    }
public function run ( string $ method , string $ uri , array $ headers , string $ body ) { if ( $ this -> router === null ) { return ; } try { $ response = $ this -> router -> run ( $ method , $ uri , $ headers , $ body ) ; if ( $ response !== null ) { $ response -> output ( ) ; } } catch ( RouterException $ e ) { $ e -> getResponse ( ) -> output ( ) ; } }
Runs the Router and outputs the Response

@param string $method  Requested HTTP method
@param string $uri     Requested URI
@param array  $headers Request Headers
@param string $body    Request Body
Runs the Router and outputs the Response