src/SapiServer.php
public function listen()
    {
        $request = $this->request;
        $response = new Response(Status::OK);
        $first = $this->getNext($this->middleware);
        $response = $first($request, $response);
        $this->serve($response, $this->getCookies());
    }
public function listen()
    {
        $request = $this->request;
        $response = new Response(Status::OK);
        $first = $this->getNext($this->middleware);
        $response = $first($request, $response);
        $this->serve($response, $this->getCookies());
    }
public function listen ( ) { $ request = $ this -> request ; $ response = new Response ( Status :: OK ) ; $ first = $ this -> getNext ( $ this -> middleware ) ; $ response = $ first ( $ request , $ response ) ; $ this -> serve ( $ response , $ this -> getCookies ( ) ) ; }
Start server, i.e. create a response for the current request using the
available middleware and request handler.
Start server i . e . create a response for the current request using the available middleware and request handler .