---
title: request.net_http
description: An outbound HTTP request made with Ruby's Net::HTTP.
url: https://docs.honeybadger.io/insights/event-types/ruby/request.net_http/
---

An outbound HTTP request made with Ruby’s Net::HTTP.

Source **Net::HTTP** Category **HTTP** Fields **9** [honeybadger-ruby](https://docs.honeybadger.io/lib/ruby/)

## Fields

| Field         | Type    | Description                                                                                                               |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
| `event_type`  | string  | Allowed value: `request.net_http`.                                                                                        |
| `method`      | string  | HTTP method, e.g. "GET", "POST".                                                                                          |
| `host`        | string  | Destination host.                                                                                                         |
| `url`         | string  | Full request URL. Only present when the net\_http.insights.full\_url config option is enabled.                            |
| `status`      | integer | HTTP response status code.                                                                                                |
| `duration`    | number  | Round-trip duration in milliseconds.                                                                                      |
| `request_id`  | string  | Rails request UUID, present on any event fired during a web request context. Set by the Honeybadger agent when available. |
| `hostname`    | string  | Server hostname. Attached to every event by default (events.attach\_hostname).                                            |
| `environment` | string  | Application environment, e.g. "production". Attached to every event by default (events.attach\_environment).              |

## Example

```json
{
  "event_type": "request.net_http",
  "method": "GET",
  "host": "api.example.com",
  "url": "https://api.example.com/v2/items/42",
  "status": 200,
  "duration": 89.4,
  "request_id": "0f5e4bb2-3c46-4b1c-91d5-2f4e8a6b9c01",
  "hostname": "web-1.example.com",
  "environment": "production"
}
```

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
