PHPDaemon\Servers\HTTP\Connection::freeRequest PHP Method

freeRequest() public method

Frees this request
public freeRequest ( $req ) : void
return void
    public function freeRequest($req)
    {
        if ($this->state !== self::STATE_PROCESSING) {
            $this->freedBeforeProcessing = true;
            return;
        }
        $req->attrs->input = null;
        $this->req = null;
        $this->state = self::STATE_ROOT;
        $this->unfreezeInput();
    }