marcuswestin/WebViewProxy là một trong những repo mã nguồn mở mà TopGit theo dõi, hiện có 859 sao, viết chủ yếu bằng Objective-C. A standalone iOS & OSX class for intercepting and proxying HTTP requests (e.g. from a Web View)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/marcuswestin/WebViewProxy là nguồn chính thức.
marcuswestin/WebViewProxy có bao nhiêu sao?
marcuswestin/WebViewProxy có 859 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/marcuswestin/WebViewProxy. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
marcuswestin/WebViewProxy có phải mã nguồn mở không?
Có — marcuswestin/WebViewProxy phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/marcuswestin/WebViewProxy.
marcuswestin/WebViewProxy có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho marcuswestin/WebViewProxy. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
marcuswestin/WebViewProxy có trang demo không?
Dự án có trang chủ ở https://twitter.com/marcuswestin. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
marcuswestin/WebViewProxy còn đang phát triển không?
Commit gần nhất trên marcuswestin/WebViewProxy là 9.7 năm trước (theo timestamp GitHub). Repo có 117 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc WebViewProxy có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về WebViewProxy.