Raw implementation with TKURLProtocol works good.