Skip to content

Host filter block

Sergey edited this page Jul 28, 2018 · 2 revisions

YHVHostFilterBlock

This block can be provided during VCR configuration (instead of fixed list of hosts) to record and play stubbed responses only for known hosts.

Block signature shown below:

^BOOL (NSString *host);

PARAMETERS

Name Type Description
host NSString Reference on host which should be filtered.

RETURNS

Whether request for host should be recorded / response played or not.

Clone this wiki locally