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.

C#
[Android.Runtime.Register("addHeader", "(Lorg/apache/http/Header;)V", "GetAddHeader_Lorg_apache_http_Header_Handler")]
public virtual void AddHeader (Org.Apache.Http.IHeader? header);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

AddHeader(String, String)

Adds a header to this message.

C#
[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);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35