Skip to content

Headers filter block

Sergey edited this page Jul 28, 2018 · 3 revisions

YHVHeadersFilterBlock

This block can be provided during VCR configuration (instead of fixed filter map) to make it possible to remove sensitive data from request headers, before request will be recorded.

Block signature shown below:

^(NSURLRequest *request, NSMutableDictionary *headers);

PARAMETERS

Name Type Description
request NSURLRequest Reference on request for which headers filtering has been performed.
headers NSMutableDictionary Reference on dictionary with request's headers which can be modified.