Sdílet prostřednictvím


AbstractHttpMessage.AddHeader Method

Definition

Overloads

AddHeader(IHeader)

Adds a header to this message.

AddHeader(String, String)

Adds a header to this message.

AddHeader(IHeader)

Adds a header to this message.

[Android.Runtime.Register("addHeader", "(Lorg/apache/http/Header;)V", "GetAddHeader_Lorg_apache_http_Header_Handler")]
public virtual void AddHeader (Org.Apache.Http.IHeader? header);
[<Android.Runtime.Register("addHeader", "(Lorg/apache/http/Header;)V", "GetAddHeader_Lorg_apache_http_Header_Handler")>]
abstract member AddHeader : Org.Apache.Http.IHeader -> unit
override this.AddHeader : Org.Apache.Http.IHeader -> unit

Parameters

header
IHeader

the header to append.

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

AddHeader(String, String)

Adds a header to this message.

[Android.Runtime.Register("addHeader", "(Ljava/lang/String;Ljava/lang/String;)V", "GetAddHeader_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void AddHeader (string? name, string? value);
[<Android.Runtime.Register("addHeader", "(Ljava/lang/String;Ljava/lang/String;)V", "GetAddHeader_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member AddHeader : string * string -> unit
override this.AddHeader : 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