Org.Apache.Http.IHttpMessage.SetHeader Method
Overwrites the first header with the same name.

Syntax

[Android.Runtime.Register("setHeader", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetHeader_Ljava_lang_String_Ljava_lang_String_Handler:Org.Apache.Http.IHttpMessageInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetHeader (string name, string value)

Parameters

name
the name of the header.
value
the value of the header.

Remarks

Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1