brainstate

coderyi/NetworkEye · source

Snapshot 0 · 2026-11-04T12:47:24Z · Objective-C · MIT

Content fingerprintfa2950806a763d71c481c1f75d01eeb777465a44a3d32006de22eef2c9a64de2

GitHub description at capture

a iOS network debug library, monitor HTTP requests

README at capture

# NetworkEye
[![Pod Version](http://img.shields.io/cocoapods/v/NetworkEye.svg?style=flat)](http://cocoadocs.org/docsets/NetworkEye/)
[![Pod Platform](http://img.shields.io/cocoapods/p/NetworkEye.svg?style=flat)](http://cocoadocs.org/docsets/NetworkEye/)
[![Pod License](http://img.shields.io/cocoapods/l/NetworkEye.svg?style=flat)](https://opensource.org/licenses/MIT)
[![Twitter](https://img.shields.io/badge/twitter-@coderyi9-green.svg?style=flat)](http://twitter.com/coderyi9)
[![](https://img.shields.io/github/stars/coderyi/NetworkEye.svg)](https://github.com/coderyi/NetworkEye/stargazers) 
[![](https://img.shields.io/github/forks/coderyi/NetworkEye.svg)](https://github.com/coderyi/NetworkEye/network) 
[![](https://img.shields.io/cocoapods/dt/NetworkEye.svg?maxAge=2592000)](https://github.com/coderyi/NetworkEye) 
[![](https://img.shields.io/cocoapods/dm/NetworkEye.svg?maxAge=2592000)](https://github.com/coderyi/NetworkEye) 
[![](https://img.shields.io/cocoapods/dw/NetworkEye.svg?maxAge=2592000)](https://github.com/coderyi/NetworkEye) 

<p align="center" >

<img  src="https://raw.githubusercontent.com/coderyi/NetworkEye/master/NetworkEye/Resources/networkeye_logo_detail.png" width="480" height="160">
</p>

[README 中文](https://github.com/coderyi/NetworkEye/blob/master/README_Chinese.md)

NetworkEye,a iOS network debug library,monitor HTTP requests.

It can be detected HTTP request include web pages, NSURLConnection, NSURLSession, AFNetworking, 3rd libraries, 3rd SDK ,and so on. very convenient and practical. 

It can be map local json file.

I created a google group,this group is for general discussion NetworkEye
,welcome to join,[https://groups.google.com/d/forum/networkeye](https://groups.google.com/d/forum/networkeye)

if you use NetworkEye, you can add it in here,[Who-Uses-NetworkEye](https://github.com/coderyi/NetworkEye/wiki/Who-Uses-NetworkEye)

welcome to new pull request,that fix bug,add new features,add support other platform.and welcome to [new issues](https://github.com/coderyi/NetworkEye/issues).

and thanks to [kasketis](https://github.com/kasketis) write the swift version  [netfox](https://github.com/kasketis/netfox)


#### Podfile

```ruby

	platform :ios, '7.0'
	pod 'NetworkEye', '~> 1.1.2'
	# pod 'NetworkEye/FMDB', '~> 1.1.2'   # NetworkEye with FMDB ,save your requests to database

```


#### Instruction
Note:Use Network Eye in DEBUG mode

add the code in AppDelegate.m   
<pre>
#import "NEHTTPEye.h"
#if defined(DEBUG)||defined(_DEBUG)
    [NEHTTPEye setEnabled:YES];
#endif
</pre>

you can use use the shortcut (⌘ Command + n) , a double tap or shake device to call out the monitoring data interface

NEHTTPEyeViewController

You can also use the following code
<pre>
#if defined(DEBUG)||defined(_DEBUG)
    NEHTTPEyeViewController *vc=[[NEHTTPEyeViewController alloc] init];
    [self presentViewController:vc animated:YES completion:nil];
#endif
</pre>
In NEHTTPEye, the default password of database is "networkeye" ,and you can save 300 requests.


the database name is networkeye.sqlite,and stored in the cache directory.

<pre>
#define kSQLitePassword @"networkeye"

#define kSaveRequestMaxCount 300
</pre>

you can change it use NEHTTPModelManager
<pre>
    [NEHTTPModelManager defaultManager].saveRequestMaxCount=300;
    [NEHTTPModelManager defaultManager].sqlitePassword=@"networkeye";
</pre>
NetworkEye use FMDB and SQLCipher。
FMDB is used to store data,SQLCipher is used to encrypt the database。

Monitoring data interface supports some search conditions ,it is URL,statusCode,HTTPMethod,MIMEType。
#### Preview

<img  src="https://raw.githubusercontent.com/coderyi/NetworkEye/master/NetworkEye/Resources/networkeye1_3.png" width="320" height="570">

<img  src="https://raw.githubusercontent.com/coderyi/NetworkEye/master/NetworkEye/Resources/networkeye2.png" width="320" height="570">

<img  src="https://raw.githubusercontent.com/coderyi/NetworkEye/master/NetworkEye/Resources/networkeye5.png" width="320" height="570">



#### Licenses

[MIT License](https://github.com/coderyi/NetworkEye/blob/master/LICENSE).

#### Contributors

thanks!

[Xi Lin](https://github.com/xilin)

[Zhu Lida](https://github.com/zld)

[Jackrex](https://github.com/jackrex)