Quantcast
Channel: Controls – TAGTECINFO
Viewing all articles
Browse latest Browse all 336

[iOS App Dev Libraries, Controls, Tutorials, Examples and Tools]ResponseDetective – A Swift Library That Intercepts Networking Request Details For Easier Debugging

$
0
0

ResponseDetective is an open source Swift library from netguru that allows you to automatically intercept incoming and outgoing communication requests and view details of those requests for debugging.

With a few lines of code you can add ResponseDetective and get networking request details in the console like in this example from the readme:

<0x000000000badf00d> [REQUEST] GET https://httpbin.org/get
Headers
Body

<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”
}

You can find ResponseDetective on Github here.

A great library for easier network debugging.

Original article: ResponseDetective – A Swift Library That Intercepts Networking Request Details For Easier Debugging

©2017 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools


Viewing all articles
Browse latest Browse all 336

Trending Articles