Language

IHttpClientConnection.ReceiveResponseHeader Method

Definition

Receives the request line and headers of the next response available from this connection.

[Android.Runtime.Register("receiveResponseHeader", "()Lorg/apache/http/HttpResponse;", "GetReceiveResponseHeaderHandler:Org.Apache.Http.IHttpClientConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.Apache.Http.IHttpResponse? ReceiveResponseHeader();
[<Android.Runtime.Register("receiveResponseHeader", "()Lorg/apache/http/HttpResponse;", "GetReceiveResponseHeaderHandler:Org.Apache.Http.IHttpClientConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReceiveResponseHeader : unit -> Org.Apache.Http.IHttpResponse

Returns

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

Attributes

Exceptions

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

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

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