Skip to content

Request matcher block

Sergey edited this page Jul 28, 2018 · 2 revisions

YHVMatcherBlock

Using this block it is possible to register custom request matcher.

Block signature shown below:

^BOOL (NSURLRequest *request, NSURLRequest *stubRequest);

PARAMETERS

Name Type Description
request NSURLRequest Reference on request which is about to be sent by user's code.
stubRequest NSURLRequest Reference on one of requests from \a cassette against which check should be done.

RETURNS

Whether two request (after running beforeRecordRequest and stubbed request (from cassette) is matching each other or not.

Clone this wiki locally