pock

ExactHeadersMatcher extends HeadersMatcher
in package

Class ExactHeadersMatcher

Tags
category

ExactHeadersMatcher

Table of Contents

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

Methods

__construct()

HeadersMatcher constructor.

public __construct(array<string, string|string[]> $headers) : mixed
Parameters
$headers : array<string, string|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