Hacker News new | ask | show | jobs
by untog 2739 days ago
WKWebView now does allow that, in a roundabout way, through WKURLSchemeHandler.
1 comments

It seems like this can only be used to support URL schemes "that WebKit doesn't know how to handle"?
Yes, you create your own. In my example of the Instagram activity feed you'd point the view at instagram://activity-view or something like that in order to intercept the request and send a custom response. You could use the same method to "proxy" through to HTTP.