Condividi tramite


AbstractHttpMessage.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")]
public virtual void SetHeader (Org.Apache.Http.IHeader? header);
[<Android.Runtime.Register("setHeader", "(Lorg/apache/http/Header;)V", "GetSetHeader_Lorg_apache_http_Header_Handler")>]
abstract member SetHeader : Org.Apache.Http.IHeader -> unit
override this.SetHeader : Org.Apache.Http.IHeader -> unit

Parameters

header
IHeader

the header to set.

Implements

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")]
public virtual 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")>]
abstract member SetHeader : string * string -> unit
override this.SetHeader : string * string -> unit

Parameters

name
String

the name of the header.

value
String

the value of the header.

Implements

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