Amp\Artax\Parser::enqueueResponseMethodMatch PHP Method

enqueueResponseMethodMatch() public method

public enqueueResponseMethodMatch ( $method )
    public function enqueueResponseMethodMatch($method)
    {
        $this->responseMethodMatch[] = $method;
    }

Usage Example

Example #1
0
 public function testKeepAliveHeadResponseParse()
 {
     $request = "HTTP/1.1 200 OK\n\n";
     $msgParser = new Parser(Parser::MODE_RESPONSE);
     $msgParser->enqueueResponseMethodMatch('HEAD');
     $parsedResponseArr = $msgParser->parse($request);
     $this->assertEquals(200, $parsedResponseArr['status']);
 }
All Usage Examples Of Amp\Artax\Parser::enqueueResponseMethodMatch