-
Notifications
You must be signed in to change notification settings - Fork 0
Request matcher block
Sergey edited this page Jul 28, 2018
·
2 revisions
Using this block it is possible to register custom request matcher.
Block signature shown below:
^BOOL (NSURLRequest *request, NSURLRequest *stubRequest);| 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. |
Whether two request (after running beforeRecordRequest and stubbed request (from cassette) is matching each other or not.