SwiftyProxy
SwiftyProxy is an In-App http/https intercepter that provides a UI to inspect the content. It works with URLConnection, URLSession, AFNetworking, Alamofire or any networking framework that use Cocoa's URL Loading System.
Example
To run the example project, clone the repo, and open the SwiftyProxy.xcworkspace (SwiftyProxy-Example target)
Requirements
SwiftyProxy is written in Swift 4.0 and supports iOS 10.0 and later. SwiftyProxy doesn't intercept requests made by NSURLConnection.
Installation
CocoaPods
SwiftyProxy is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SwiftyProxy'
Carthage
Add the following dependency to your Cartfile
:
github "samirGuerdah/SwiftyProxy"
Usage
Enable the SwiftyProxy before doing any request, in the application delegate for example :
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
SwiftyProxy.enable()
return true
}
// Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[SwiftyProxy enable]
return true
}
Author
Samir Guerdah, [email protected]
License
SwiftyProxy is available under the MIT license. See the LICENSE file for more info.