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