Language

IHttpServerConnection.ReceiveRequestHeader Method

Definition

Receives the request line and all headers available from this connection.

[Android.Runtime.Register("receiveRequestHeader", "()Lorg/apache/http/HttpRequest;", "GetReceiveRequestHeaderHandler:Org.Apache.Http.IHttpServerConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHttpRequest? ReceiveRequestHeader();
[<Android.Runtime.Register("receiveRequestHeader", "()Lorg/apache/http/HttpRequest;", "GetReceiveRequestHeaderHandler:Org.Apache.Http.IHttpServerConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReceiveRequestHeader : unit -> Org.Apache.Http.IHttpRequest

Returns

A request initialized with its request line and headers. Its entity must be received separately if needed.

Attributes

Exceptions

An I/O error occurs while reading the request line or headers.

The request line or headers cannot be parsed as a valid HTTP request.

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