Chapter 14. I See HTTP

Stoyan Stefanov

Ladies and gentlemen, boys and girls. Say hello to icy.

icy

It’s an iOS app that lets you debug HTTP. It’s like HTTPWatch (http://httpwatch.com/) or WebPagetest (http://webpagetest.org/), but for mobile. Like blaze.io’s mobitest (http://www.blaze.io/mobile/), but in your pocket, it works with 3G, Edge (as these can have different characteristics and carrier optimizations than WiFi), and also lets you inspect pages behind login.

Some details

  • It’s a UIWebView that loads the page you want and provides a NSURLCache class, which logs whatever the iOS networking layer throws at it.

  • It’s on github (https://github.com/stoyan/icy). Note that this is my very first attempt at iOS and Obj-C so the code quality is probably atrocious. License is public domain, because I don’t really understand the others.

  • The name is icy, because it’s iOS and it’s the law that app names be prefixed with an “i”. Also (to my Eastern European ear at least), “icy” sounds like “I see” (spelled “ic” in chats) and is the beginning of (said with spookiest of voices) “I see… HTTPeee.”

Walkthrough

A journey of a thousands miles begins with a single tap. As you can see in Figure 14-1, the icon is the default/missing icon. (Who cares about icons?) If you focus hard enough you may convince yourself that the white icon actually makes sense, it’s like snow, or, there you have it, ice.

Figure 14-1. App icon

What we have then (Figure 14-2) is a UIWebView ...

Get Web Performance Daybook Volume 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.