public function loadRequest($buffer)
    {
        $this->requestAt = microtime(true);
        
        
        list($this->_rawHeader, $this->_rawBody) = explode("\r\n\r\n", $buffer, 2);
        
        $headers = explode("\r\n", $this->_rawHeader, 2);
        
        list($this->method, $this->uri, $this->version) = explode(' ',$headers[0]);
        
        $this->loadHeaders();
        
        $this->loadBody();
        
        $this->_REQUEST = array_merge($this->_GET, $this->_POST);
        
        $this->loadServerVars();
        $this->loadGet();
        
    }
public function loadRequest($buffer)
    {
        $this->requestAt = microtime(true);
        
        
        list($this->_rawHeader, $this->_rawBody) = explode("\r\n\r\n", $buffer, 2);
        
        $headers = explode("\r\n", $this->_rawHeader, 2);
        
        list($this->method, $this->uri, $this->version) = explode(' ',$headers[0]);
        
        $this->loadHeaders();
        
        $this->loadBody();
        
        $this->_REQUEST = array_merge($this->_GET, $this->_POST);
        
        $this->loadServerVars();
        $this->loadGet();
        
    }
public function loadRequest ( $ buffer ) { $ this -> requestAt = microtime ( true ) ; list ( $ this -> _rawHeader , $ this -> _rawBody ) = explode ( "\r\n\r\n" , $ buffer , 2 ) ; $ headers = explode ( "\r\n" , $ this -> _rawHeader , 2 ) ; list ( $ this -> method , $ this -> uri , $ this -> version ) = explode ( ' ' , $ headers [ 0 ] ) ; $ this -> loadHeaders ( ) ; $ this -> loadBody ( ) ; $ this -> _REQUEST = array_merge ( $ this -> _GET , $ this -> _POST ) ; $ this -> loadServerVars ( ) ; $ this -> loadGet ( ) ; }
load reqeust buffer to this object
@param string $buffer
load reqeust buffer to this object