IHttpMessage.SetHeader IHttpMessage.SetHeader Method

Definition

Overloads

SetHeader(IHeader) SetHeader(IHeader)

Overwrites the first header with the same name.

SetHeader(String, String) SetHeader(String, String)

Overwrites the first header with the same name.

SetHeader(IHeader) SetHeader(IHeader)

Overwrites the first header with the same name.

[Android.Runtime.Register("setHeader", "(Lorg/apache/http/Header;)V", "GetSetHeader_Lorg_apache_http_Header_Handler:Org.Apache.Http.IHttpMessageInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetHeader (Org.Apache.Http.IHeader header);
abstract member SetHeader : Org.Apache.Http.IHeader -> unit

Parameters

header
IHeader IHeader

the header to set.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetHeader(String, String) SetHeader(String, String)

Overwrites the first header with the same name.

[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);
abstract member SetHeader : string * string -> unit

Parameters

name
String String

the name of the header.

value
String String

the value of the header.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to