---
id: "T:cAlgo.API.HttpResponseHeaders"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/HTTP/HttpResponseHeaders/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# HttpResponseHeaders (class)

The class that represents an HTTP response headers collection.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public sealed class HttpResponseHeaders
```

## Examples

C#:

```csharp
var response = Http.Get("https://api.example.com/quotes/EURUSD");
Print("Content type: {0}", response.Headers.GetValue("Content-Type"));
foreach (var header in response.Headers)
    Print("{0}: {1}", header.Key, header.Value);
```

Python:

```python
response = api.Http.Get("https://api.example.com/quotes/EURUSD")
api.Print(f"Content type: {response.Headers.GetValue('Content-Type')}")
for header in response.Headers:
    api.Print(f"{header.Key}: {header.Value}")
```

## Methods

- `public IEnumerator<KeyValuePair<string, string>> GetEnumerator()` — Returns an enumerator that iterates through HttpResponseHeaders . [details](https://help.ctrader.com/ctrader-algo/references/HTTP/HttpResponseHeaders/GetEnumerator/index.md)
- `public string GetValue(string name)` — Returns an existing header value. [details](https://help.ctrader.com/ctrader-algo/references/HTTP/HttpResponseHeaders/GetValue/index.md)

