pock

HeaderLineRegexpMatcher
in package
implements RequestMatcherInterface

Class HeaderLineRegexpMatcher

Tags
category

HeaderLineRegexpMatcher

Interfaces, Classes, Traits and Enums

RequestMatcherInterface
Interface RequestMatcherInterface

Table of Contents

__construct()  : mixed
HeaderLineRegexpMatcher constructor.
matches()  : bool
Returns true if request is matched by this matcher.

Methods

__construct()

HeaderLineRegexpMatcher constructor.

public __construct(string $header, string $pattern) : mixed
Parameters
$header : string
$pattern : string
Return values
mixed

matches()

Returns true if request is matched by this matcher.

public matches(RequestInterface $request) : bool
Parameters
$request : RequestInterface
Tags
inheritDoc
Return values
bool

Search results