public static function createResponseFromFile($fp)
    {
        $response = new HTTP_Request2_Response(fgets($fp));
        do {
            $headerLine = fgets($fp);
            $response->parseHeaderLine($headerLine);
        } while ('' != trim($headerLine));

        while (!feof($fp)) {
            $response->appendBody(fread($fp, 8192));
        }
        return $response;
    }
public static function createResponseFromFile($fp)
    {
        $response = new HTTP_Request2_Response(fgets($fp));
        do {
            $headerLine = fgets($fp);
            $response->parseHeaderLine($headerLine);
        } while ('' != trim($headerLine));

        while (!feof($fp)) {
            $response->appendBody(fread($fp, 8192));
        }
        return $response;
    }
public static function createResponseFromFile ( $ fp ) { $ response = new HTTP_Request2_Response ( fgets ( $ fp ) ) ; do { $ headerLine = fgets ( $ fp ) ; $ response -> parseHeaderLine ( $ headerLine ) ; } while ( '' != trim ( $ headerLine ) ) ; while ( ! feof ( $ fp ) ) { $ response -> appendBody ( fread ( $ fp , 8192 ) ) ; } return $ response ; }
Creates a new HTTP_Request2_Response object from a file

@param resource $fp file pointer returned by fopen()

@return   HTTP_Request2_Response
@throws   HTTP_Request2_Exception
Creates a new HTTP_Request2_Response object from a file