Get Updates By E-mail 

Article Written By:
Johann Dowa

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

  •  
  •  
  •  
  •  
  •  

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments