pock

ExactHeaderMatcher extends HeaderMatcher
in package

Class ExactHeaderMatcher

Tags
category

ExactHeaderMatcher

Table of Contents

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

Methods

__construct()

HeaderMatcher constructor.

public __construct(string $header, string|array<string|int, string> $value) : mixed
Parameters
$header : string
$value : string|array<string|int, 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