HeaderLineRegexpMatcher
in package
implements
RequestMatcherInterface
Applies a PCRE pattern to a header's unparsed line.
Tags
Table of Contents
Interfaces
- RequestMatcherInterface
- Contract for reusable request matching rules registered through PockBuilder::addMatcher().
Methods
- __construct() : mixed
- HeaderLineRegexpMatcher constructor.
- matches() : bool
- Return true when the request satisfies this rule.
Methods
__construct()
HeaderLineRegexpMatcher constructor.
public
__construct(string $header, string $pattern) : mixed
Parameters
- $header : string
- $pattern : string
matches()
Return true when the request satisfies this rule.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface