xiaerfei / SSWKURL

Intercept Requests of WKWebView. WKWebView网络请求拦截.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSWKURL

Intercept Requests of WKWebView.

介绍iOS完美请求拦截

Features

  • Intercept All Requests of WKWebView.

Installation

Drag the SSWKURL.h and SSWKURL.m files into your project.

Usage

Subclass SSWKURLProtocol like NSURLProtol.

Implement your own -startLoading: and -stopLoading.

Then call [yourWKURLConfiguration ssRegisterURLProtocol:[YourSSWKURLProtocol class]];

Then You could moniter requests or load cache for requests.

About

Intercept Requests of WKWebView. WKWebView网络请求拦截.


Languages

Language:Objective-C 100.0%