# Network

> See your app's HTTP requests in the desktop app with their headers, bodies and cookies, and slow its network down with throttling. It is on by default.

The Network panel lists every HTTP request your app makes, with its headers, payload, response and cookies. You can filter the list, copy a request as a cURL command, and throttle your app’s network to test slow and offline connections.

[Setting up Network in the SDK](/docs/sdk/network/)

![The Network panel with a list of requests and a JSON response open in the details pane](/_astro/network-panel-light.CjD_3mc__Z16jHtX.webp)![The Network panel with a list of requests and a JSON response open in the details pane](/_astro/network-panel-dark.s597Nqvu_Z1bcGnG.webp)

The Network panel with a list of requests and a JSON response open in the details pane

## Using the Network panel

### Reading requests

Each request shows when it **Started**, and its **Method**, **Status**, **Host**, **Path**, **Type**, **Size** and **Time**. Newest requests appear at the bottom. The list follows new requests while you’re scrolled to the bottom; scroll up to stop, and use **Jump to latest** to go back. Drag a column edge to resize it, or double-click the edge to reset it.

* **Status** shows the response code, coloured by its class. Until then it shows **Pending**. A request that fails shows **Failed**, and one that hasn’t been heard from for 30 seconds, or was in flight when your app disconnected, shows **No response**.
* **Path** includes the query string. Hover it to see the full URL.
* **Type** is the response’s MIME type, shortened, such as `json` or `html`.
* **Size** is the size of the response body after it is decompressed.

### Inspecting a request

Select a request to open its details:

| Tab      | Shows                                                                                     |
| -------- | ----------------------------------------------------------------------------------------- |
| Headers  | Response or request headers, sorted by name                                               |
| Payload  | The request body                                                                          |
| Response | The response body                                                                         |
| Cookies  | Cookies **Sent** with the request, and cookies **Received** with their attributes         |
| Info     | The URL, method, status, state, size, start time and duration, and the error if it failed |

A JSON response is pretty-printed, and its objects and arrays can be folded. Switch to **Raw** to see it as received, and use **Copy** to copy what’s shown. Binary responses, such as images, aren’t shown.

### Filtering

Type in **Filter by host…** to show only requests whose host contains the text, ignoring case.

To filter on the rest of the URL, use **Filters** in the toolbar. Add text or a `/pattern/flags` expression under **Include** or **Exclude**. To add one from a request, open its row menu and pick **Exclude host**, **Exclude path** or **Include host**. Switch a filter off to keep it for later, or edit or delete it. Filters are saved between sessions, and are the same ones as in [**Settings > Filters**](/docs/desktop/settings/filters/#network), which explains how they match.

![The Filters popover with an include filter and an exclude filter](/_astro/network-filters-light.DO51lMSc_Xw3bV.webp)![The Filters popover with an include filter and an exclude filter](/_astro/network-filters-dark.Bl1Cjtqc_rQy9a.webp)

The Filters popover with an include filter and an exclude filter

While the search or any filter is active, a bar under the toolbar counts the requests it hides. **Clear filter** empties the search and switches every filter off without deleting it.

### Copying as cURL

Use **Copy as cURL** from a request’s row menu, or the button in the details header, to copy a command that replays it with its method, URL, headers and body. Headers are copied in full, so check for tokens before you share it.

### Throttling

Use **Throttle** in the toolbar to slow your app’s network down. Pick a preset, or **Add custom profile…** with a latency in milliseconds and download and upload speeds in kilobits per second. Use 0 for unlimited.

| Profile | Latency  | Download  | Upload   |
| ------- | -------- | --------- | -------- |
| Fast 3G | 562.5 ms | 1440 kbps | 675 kbps |
| Slow 3G | 2000 ms  | 400 kbps  | 400 kbps |
| Offline | —        | Blocked   | Blocked  |

While a profile is on, the button shows its name and a **Throttling: …** banner sits above the list. Use **Turn off** in the banner, or pick **No throttling**, to stop. Custom profiles are saved, but throttling is always off when the desktop app starts.

![The Network panel throttled to Slow 3G, with the banner above tinted requests](/_astro/network-throttle-light.BXiMwuCj_Z2vOY6v.webp)![The Network panel throttled to Slow 3G, with the banner above tinted requests](/_astro/network-throttle-dark.mKHN34n5_2tAXve.webp)

The Network panel throttled to Slow 3G, with the banner above tinted requests

Throttling happens inside your app, so the panel shows what your app experiences:

* Throttled requests are tinted, and stay **Pending** until your app has the response.
* Their **Time** includes the delay, and the Info tab shows how much was added as **Throttled**.
* Requests blocked by **Offline** show as **Failed** with “Blocked by offline throttling”. Requests cancelled while held back show “Cancelled while throttled”.

### Throttling single requests

Right-click a request and choose **Throttle requests like this** to take just those requests offline while everything else runs normally. The **Rules** menu, next to **Throttle** in the toolbar, opens on a new rule with the request’s URL and method filled in, set to **Offline**. Pick another profile, or change the rule, then **Save**.

A rule matches when the request’s URL contains the text, ignoring case, or matches it as a `/regex/`, and the method is the one you chose, or **Any method**. Use `*` in the text to match any characters, such as `/api/cases/*`. Matching requests are throttled with the rule’s profile, even while another profile is on. If several rules match, the first in the list wins.

The **Rules** menu lists your rules, where you can turn them on and off, edit and delete them, or **Add rule…** from scratch. The **Throttle rules** switch at the top turns them all off at once. Rules are saved, and stay on until you turn them off or delete them.

### Clearing requests

**Clear requests**, the bin at the start of the toolbar, empties the list in the desktop app. Requests are kept when your app reloads or disconnects, until you clear them.

## Limits and Troubleshooting

* The Network panel keeps the latest 1,000 requests and drops older ones.

* When a request is redirected, only the final response is reported. The Info tab shows its **Final URL**, and cookies set by earlier responses aren’t shown.

* Throttling only slows requests made with `fetch` or `XMLHttpRequest`. Images loaded by native components and requests made by native SDKs aren’t throttled, and `FormData` uploads get no upload delay.

* Running `init()` again while throttling is on resets throttling in your app, though the banner stays. Turn throttling off and on again to apply it.

* “React Native disabled network inspection for this app session” means React Native stopped reporting requests. Fully close and relaunch your app.

* If nothing appears, check the Connection panel. “No Metro found on port …” means Metro isn’t running, or runs on a port other than the one in [**Settings > Connection**](/docs/desktop/settings/connection/).

* On React Native below 0.83, the panel can’t read requests natively, so it shows what the SDK sees from JS and can’t show:

  * Requests made before `init()`, `<Image>` loads and requests made by native SDKs.
  * Requests made by importing `fetch` from `expo/fetch`, or through a `fetch` saved before `init()`.
  * The request’s `Cookie` header.
  * Request bodies that aren’t strings, and response bodies that aren’t text or are over 1 MB, so images have no preview.
  * Redirects. The row shows the original URL and isn’t flagged.
  * Timing beyond when the request started and ended.
  * Throttling.
