Share via


IODataRequestMessage.SetHeader(String, String) Method

Definition

Sets the value of an HTTP header.

public void SetHeader (string headerName, string headerValue);
abstract member SetHeader : string * string -> unit
Public Sub SetHeader (headerName As String, headerValue As String)

Parameters

headerName
String

The name of the header to set.

headerValue
String

The value of the HTTP header or 'null' if the header should be removed.

Applies to