SkillAgentSearch skills...

SSWKURL

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

Install / Use

/learn @lilidan/SSWKURL
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SSWKURL

Intercept and cache requests of WKWebView.

介绍iOS完美请求拦截 WKWebView缓存+请求拦截

网易团队采用了更完整细致(原理相同)的解决方案,建议采用他们的:WKWebView 请求拦截探索与实践

Features

  • Intercept All Requests of WKWebView.
  • Cache requests.

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.

Compare to VasSonic

  • support WKWebview
  • iOS SDK > 12

Blog

WKWebView完美(?)网络请求拦截 WKWebView缓存+请求拦截 网易团队采用了更完整细致(原理相同)的解决方案,建议采用他们的:WKWebView 请求拦截探索与实践

View on GitHub
GitHub Stars146
CategoryDevelopment
Updated5mo ago
Forks25

Languages

Objective-C

Security Score

77/100

Audited on Oct 26, 2025

No findings