dequan1331 / HybridPageKit

A high-performance、high-extensibility、easy integration framework for Hybrid content page. Support most content page types of News App.
MIT License
1.22k stars 184 forks source link

HybridPageKit 是否实现了本地HTTP代理server #26

Closed wangweihu closed 5 years ago

wangweihu commented 5 years ago

除了NSURLProtocol拦截H5请求外,HTTP代理server也是一个方法,这个有实现吗

dequan1331 commented 5 years ago

这个是需要在业务层实现的,一般来说使用GCDWebServer即可,在HybridPageKit没有集成

karosLi commented 5 years ago

image

这块想请教下,WKWebView 是怎么做到重定向请求到 Local Server 的呢,因为如果是通过URLProtocol去重定向请求,实际上是丢失http ajax body,那这里是怎么做到资源请求都重定向到 Local Server 上的呢?

Lee0820 commented 5 years ago

同文,朱老师