Initial commit 🎉
fbshipit-source-id: b6fc29740c6875d2e78953b8a7123890a67930f2 Co-authored-by: Sebastian McKenzie <sebmck@fb.com> Co-authored-by: John Knox <jknox@fb.com> Co-authored-by: Emil Sjölander <emilsj@fb.com> Co-authored-by: Pritesh Nandgaonkar <prit91@fb.com>
This commit is contained in:
32
docs/network-plugin.md
Normal file
32
docs/network-plugin.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
id: network-plugin
|
||||
title: Network
|
||||
---
|
||||
|
||||
Use the Network inspector to inspect outgoing network traffic our apps. You can easily browse all requests being made and their responses. The plugin also supports gzipped responses.
|
||||
|
||||

|
||||
|
||||
## Setup
|
||||
|
||||
To use the network plugin, you need to add the plugin to your Sonar client instance.
|
||||
|
||||
### Android
|
||||
|
||||
```java
|
||||
import com.facebook.sonar.plugins.network.NetworkSonarPlugin;
|
||||
|
||||
client.addPlugin(new NetworkSonarPlugin());
|
||||
```
|
||||
|
||||
### iOS
|
||||
|
||||
```objective-c
|
||||
#import <SonarKitNetworkPlugin/SonarKitNetworkPlugin.h>
|
||||
|
||||
[client addPlugin: [SonarKitNetworkPlugin new]]
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
All request sent from the device will be listed in the plugin. Click on a request to see details like headers and body. You can filter the table for domain, method or status by clicking on the corresponding value in the table.
|
||||
Reference in New Issue
Block a user