我使用NSURLProtocol来处理来自Webview的请求。我试图将请求从主机转换到ip地址,然后发送出去。我把这些逻辑放进去
+ (NSURLRequest *)canonicalRequestForRequest:(NSURLRequest *)request{
Here is an asynchronous method which gives a NSString by using a block.
I need to convert this NSString back to NSURLRequest,
so the webvi