A non-intrusive Swift framework for intercepting and logging network requests and responses for debugging.
ResponseDetective is a Swift framework designed to intercept and log network traffic between an app and its server for debugging purposes. It captures detailed information about HTTP requests and responses, including headers and body content, and outputs them in a readable format to the console. It solves the problem of opaque network communication by providing visibility into API calls without modifying existing networking code.
iOS, macOS, and tvOS developers who need to debug network requests and responses in their apps, particularly those using URLSession, AFNetworking, or Alamofire. It's especially useful for developers working on apps with complex API interactions.
Developers choose ResponseDetective because it offers a simple, non-intrusive way to gain deep insights into network traffic with minimal setup. Unlike manual logging or proxy tools, it integrates directly into the app's networking layer and works seamlessly with popular Swift networking libraries.
Sherlock Holmes of the networking layer. :male_detective:
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Requires only a few lines of code to enable in URLSessionConfiguration, as shown in the README with examples for Swift and Objective-C, avoiding major code changes.
Logs comprehensive HTTP details like methods, URLs, headers, and body content in a formatted console output, making API debugging transparent and easy to parse.
Works seamlessly with native URLSession, AFNetworking, and Alamofire, as documented in the README, ensuring versatility across common iOS networking stacks.
Supports iOS 9.0+, macOS 10.10+, and tvOS 9.0+, allowing consistent debugging workflows across Apple's ecosystem without platform-specific adjustments.
Lacks a GUI or export options, forcing developers to rely on Xcode console logs, which can be inefficient for analyzing large or complex network traffic.
Intercepting all network traffic adds latency, potentially slowing down debug builds or intensive API testing, though the README doesn't quantify this impact.
The README notes that for Carthage on Apple Silicon, a special script is required, indicating potential installation hurdles and extra steps for some users.