Org.Apache.Http.IHttpMessage.GetFirstHeader Method
Returns the first header with a specified name of this message.

Syntax

[Android.Runtime.Register("getFirstHeader", "(Ljava/lang/String;)Lorg/apache/http/Header;", "GetGetFirstHeader_Ljava_lang_String_Handler:Org.Apache.Http.IHttpMessageInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IHeader GetFirstHeader (string name)

Parameters

name
the name of the header to return.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the first header with a specified name of this message. Header values are ignored. If there is more than one matching header in the message the first element of IHttpMessage.GetHeaders(string) is returned. If there is no matching header in the message null is returned.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1