Share via


IHttpMessage.SetHeader Method

Definition

Overloads

SetHeader(IHeader)

Overwrites the first header with the same name.

SetHeader(String, String)

Overwrites the first header with the same name.

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);
[<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")>]
abstract member SetHeader : Org.Apache.Http.IHeader -> unit

Parameters

header
IHeader

the header to set.

Attributes

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

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

Parameters

name
String

the name of the header.

value
String

the value of the header.

Attributes

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