As an open-source project, marcuswestin/WebViewProxy has picked up 859 stars on GitHub (Objective-C). A standalone iOS & OSX class for intercepting and proxying HTTP requests (e.g. from a Web View)
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Proxy requests for a web views, easily and without mucking around with NSURLProtocol.
Works on iOS and OSX.
Responses to intercepted requests may be served either synchronously or asynchronously - this stands in contrast to the UIWebViewDelegate method -(NSCachedURLResponse *)cachedResponseForRequest:url:host:path:, which may only intercept requests and serve responses synchronously (making it impossible to e.g. proxy requests through to the network without blocking on the network request).
If you like WebViewProxy you should also check out WebViewJavascriptBridge.
API
1: Register handlers with WebViewProxy to intercept requests
Intercept all UIWebView requests matching the given host and URL path prefix.
For example, a handler registered with [WebViewProxy handleRequestsWithHost:@"foo.com" pathPrefix:@"/bar" handler:...] will intercept requests for http://foo.com/bar, https://foo.com/bar/cat?wee=yes, http://foo.com/bar/arbitrarily/long/subpath, etc.
Pipe an NSURLResponse and its data into the WVPResponse. This makes it simple to e.g. proxy a request and its response through an NSURLConnection.
Examples to be written.
- (void) pipeResponse:(NSURLResponse*)response;
Pipe an NSURLResponse into the response.
- (void) pipeData:(NSData*)data;
Pipe data into the response.
- (void) pipeError:(NSError*)error;
Pipe an error into the response (e.g a network error).
- (void) pipeEnd;
Finish a piped response.
3: (optional) Handle "Stop Loading" event
A request handler may be told to "stop loading". This can happen e.g as a result of cancel: being called on the underlying NSURLRequest. You can get notified of this via the handleStopLoadingRequest: method on WVPResponse.
This API can be used to e.g stop performing an expensive computation in your request handler.
TopGit's last sync did not record any GitHub topics for marcuswestin/WebViewProxy. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on marcuswestin/WebViewProxy?
The most recent commit recorded on marcuswestin/WebViewProxy was 9.7 years ago, based on the GitHub push timestamp. The repository has 117 forks — one of the better signals of community interest.
How many stars does marcuswestin/WebViewProxy have?
marcuswestin/WebViewProxy has 859 GitHub stars — refresh the page for the live number, or check github.com/marcuswestin/WebViewProxy. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is marcuswestin/WebViewProxy open source?
Yes — marcuswestin/WebViewProxy ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/marcuswestin/WebViewProxy.
Where can I see marcuswestin/WebViewProxy in action?
The project maintains a homepage at https://twitter.com/marcuswestin. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about marcuswestin/WebViewProxy?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/marcuswestin/WebViewProxy is the definitive source.
Read full README in the tab above.
Is WebViewProxy worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of WebViewProxy.