---
title: HTTP monitoring
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/http-monitoring/overview
---

## HTTP monitoring methods

| Method                                                                                                                                      | Description                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [nrEnableHttpEvents](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/http-monitoring/nrenablehttpevents)   | Enable HTTP_CONNECT/HTTP_COMPLETE events.                  |
| [nrDisableHttpEvents](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/http-monitoring/nrdisablehttpevents) | Disable HTTP_CONNECT/HTTP_COMPLETE events.                 |
| [nrSendHttpRequest](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/http-monitoring/nrsendhttprequest)     | Send an HTTP_REQUEST event of type ConnectedDeviceSystem.  |
| [nrSendHttpResponse](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/http-monitoring/nrsendhttpresponse)   | Send an HTTP_RESPONSE event of type ConnectedDeviceSystem. |

## Examples

### nrEnableHttpEvents

```js
  	nrEnableHttpEvents(nr)
```

### nrDisableHttpEvents

```js
  	nrDisableHttpEvents(nr)
```

### nrSendHttpRequest

```js
  	urlReq = CreateObject("roUrlTransfer")
	  urlReq.SetUrl(_url)
	  ...
	  nrSendHttpRequest(m.nr, urlReq)
```

### nrSendHttpResponse

```js
  	msg = wait(5000, m.port)
	  if type(msg) = "roUrlEvent" then
		        nrSendHttpResponse(m.nr, _url, msg)
	  end if
```
