## WebHeaderCollection::Add(HttpRequestHeader, String) method


Adds the specified pair of the header and the header value to the collection.

```cpp
void System::Net::WebHeaderCollection::Add(HttpRequestHeader header, String value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| header | HttpRequestHeader | The header. |
| value | String | The header value. |

## See Also

* Enum [HttpRequestHeader](../../httprequestheader/)
* Class [String](../../../system/string/)
* Class [WebHeaderCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
## WebHeaderCollection::Add(HttpResponseHeader, String) method


Adds the specified pair of the header and the header value to the collection.

```cpp
void System::Net::WebHeaderCollection::Add(HttpResponseHeader header, String value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| header | HttpResponseHeader | The header. |
| value | String | The header value. |

## See Also

* Enum [HttpResponseHeader](../../httpresponseheader/)
* Class [String](../../../system/string/)
* Class [WebHeaderCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
## WebHeaderCollection::Add(String, String) method


Adds the specified pair of the header name and the header value to the collection.

```cpp
void System::Net::WebHeaderCollection::Add(String header, String value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| header | String | The header name. |
| value | String | The header value. |

## See Also

* Class [String](../../../system/string/)
* Class [WebHeaderCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
