ResponseDetective alternatives and similar libraries
Based on the "Networking" category.
Alternatively, view ResponseDetective alternatives based on common mentions on social networks and blogs.
-
AFNetworking
A delightful networking framework for iOS, macOS, watchOS, and tvOS. -
CocoaAsyncSocket
Asynchronous socket networking library for Mac and iOS -
RestKit
RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X -
Reachability.swift
Replacement for Apple's Reachability re-written in Swift with closures -
YTKNetwork
YTKNetwork is a high level request util based on AFNetworking. -
ASIHTTPRequest
Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone -
swift-protobuf
Plugin and runtime library for using protobuf with Swift -
apollo-ios
๐ฑ ย A strongly-typed, caching GraphQL client for iOS, written in Swift. -
RealReachability
We need to observe the REAL reachability of network. That's what RealReachability do. -
Netfox
A lightweight, one line setup, iOS / OSX network debugging library! ๐ฆ -
MonkeyKing
MonkeyKing helps you to post messages to Chinese Social Networks. -
SwiftHTTP
Thin wrapper around NSURLSession in swift. Simplifies HTTP requests. -
Siesta
The civilized way to write REST API clients for iOS / macOS -
APIKit
Type-safe networking abstraction layer that associates request type with response type. -
NetworkEye
a iOS network debug library, monitor HTTP requests -
Networking
Easy HTTP Networking in Swift a NSURLSession wrapper with image caching support -
XMNetworking
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking. -
Overcoat
The perfect accessory for Mantle and AFNetworking. -
protobuf-swift
Google ProtocolBuffers for Apple Swift -
Pitaya
๐ A Swift HTTP / HTTPS networking library just incidentally execute on machines -
SPTDataLoader
The HTTP library used by the Spotify iOS client -
Reach
A simple class to check for internet connection availability in Swift. -
SOAPEngine
This generic SOAP client allows you to access web services using a your iOS app, Mac OS X app and AppleTV app. -
Digger
Digger is a lightweight download framework that requires only one line of code to complete the file download task -
TRON
Lightweight network abstraction layer, written on top of Alamofire -
TWRDownloadManager
A modern download manager based on NSURLSession to deal with asynchronous downloading, management and persistence of multiple files. -
Transporter
A tiny library makes uploading and downloading easier -
Malibu
:surfer: Malibu is a networking library built on promises -
Restofire
Restofire is a protocol oriented networking client for Alamofire -
ws โ๏ธ
โ ๏ธ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing) -
EVURLCache
a NSURLCache subclass for handling all web requests that use NSURLRequest -
AFNetworking+RetryPolicy
Nice category that adds the ability to set the retry interval, retry count and progressiveness. -
MultiPeer
๐ฑ๐ฒ A wrapper for the MultipeerConnectivity framework for automatic offline data transmission between devices -
JSONRPCKit
A JSON-RPC 2.0 library purely written in Swift -
AFNetworking-Synchronous
Synchronous requests for AFNetworking 1.x, 2.x, and 3.x -
ROADFramework
ROAD โ Rapid Objective-C Applications Development
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ResponseDetective or a related project?
README
[](Images/Header.png)
ResponseDetective is a non-intrusive framework for intercepting any outgoing requests and incoming responses between your app and your server for debugging purposes.
Requirements
ResponseDetective is written in Swift 5.3 and supports iOS 9.0+, macOS 10.10+ and tvOS 9.0+.
Usage
Incorporating ResponseDetective in your project is very simple โ it all comes down to just two steps:
Step 1: Enable interception
For ResponseDetective to work, it needs to be added as a middleman between your (NS)URLSession
and the Internet. You can do this by registering the provided URLProtocol
class in your session's (NS)URLSessionConfiguration.protocolClasses
, or use a shortcut method:
// Objective-C
NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
[RDTResponseDetective enableInConfiguration:configuration];
// Swift
let configuration = URLSessionConfiguration.default
ResponseDetective.enable(inConfiguration: configuration)
Then, you should use that configuration with your (NS)URLSession
:
// Objective-C
NSURLSession *session = [[NSURLSession alloc] initWithConfiguration:configuration];
// Swift
let session = URLSession(configuration: configuration)
Or, if you're using AFNetworking/Alamofire as your networking framework, integrating ResponseDetective comes down to just initializing your AFURLSessionManager
/Manager
with the above (NS)URLSessionConfiguration
:
// Objective-C (AFNetworking)
AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];
// Swift (Alamofire)
let manager = Alamofire.SessionManager(configuration: configuration)
And that's all!
Step 2: Profit
Now it's time to perform the actual request:
// Objective-C
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://httpbin.org/get"]];
[[session dataTaskWithRequest:request] resume];
// Swift
let request = URLRequest(URL: URL(string: "http://httpbin.org/get")!)
session.dataTask(with: request).resume()
Voilร ! ๐ Check out your console output:
<0x000000000badf00d> [REQUEST] GET https://httpbin.org/get
โโ Headers
โโ Body
โ <none>
<0x000000000badf00d> [RESPONSE] 200 (NO ERROR) https://httpbin.org/get
โโ Headers
โ Server: nginx
โ Date: Thu, 01 Jan 1970 00:00:00 GMT
โ Content-Type: application/json
โโ Body
โ {
โ "args" : {
โ },
โ "headers" : {
โ "User-Agent" : "ResponseDetective\/1 CFNetwork\/758.3.15 Darwin\/15.4.0",
โ "Accept-Encoding" : "gzip, deflate",
โ "Host" : "httpbin.org",
โ "Accept-Language" : "en-us",
โ "Accept" : "*\/*"
โ },
โ "url" : "https:\/\/httpbin.org\/get"
โ }
Installation
Carthage
If you're using Carthage, add the following dependency to your Cartfile
:
github "netguru/ResponseDetective" ~> {version}
CocoaPods
If you're using CocoaPods, add the following dependency to your Podfile
:
use_frameworks!
pod 'ResponseDetective', '~> {version}'
Swift Package Manager
If you're using Swift Package Manager, add this repository to the Swift Packages in your project settings.
Local
To install the test dependencies or to build ResponseDetective itself, do not run carthage
directly. It can't handle the Apple Silicon architectures introduced in Xcode 12. Instead, run it through the carthage.sh
script:
$ ./carthage.sh bootstrap
Alternatively, you can run the tests locally using Swift Package Manager with the following command:
$ swift test
About
This project was made with โก by Netguru.
Release names
Starting from version 1.0.0, ResponseDetective's releases are named after Sherlock Holmes canon stories, in chronological order. What happens if we reach 60 releases and there are no more stories? We don't know, maybe we'll start naming them after cats or something.
License
This project is licensed under MIT License. See [LICENSE.md](LICENSE.md) for more info.
*Note that all licence references and agreements mentioned in the ResponseDetective README section above
are relevant to that project's source code only.