Jazyk

DefaultResponseParser.ParseHead(ISessionInputBuffer) Method

Definition

Reads until a response status line is recognized or the configured preceding-line limit is reached. Earlier line text remains in the buffer, so preceding non-whitespace garbage can prevent the default line parser from recognizing a later valid status line even within that limit. Fails if the server sends no response or no valid status line is found.

[Android.Runtime.Register("parseHead", "(Lorg/apache/http/io/SessionInputBuffer;)Lorg/apache/http/HttpMessage;", "GetParseHead_Lorg_apache_http_io_SessionInputBuffer_Handler")]
protected override Org.Apache.Http.IHttpMessage? ParseHead(Org.Apache.Http.IO.ISessionInputBuffer? sessionBuffer);
[<Android.Runtime.Register("parseHead", "(Lorg/apache/http/io/SessionInputBuffer;)Lorg/apache/http/HttpMessage;", "GetParseHead_Lorg_apache_http_io_SessionInputBuffer_Handler")>]
override this.ParseHead : Org.Apache.Http.IO.ISessionInputBuffer -> Org.Apache.Http.IHttpMessage

Parameters

sessionBuffer
ISessionInputBuffer

The input buffer from which to read the response status line.

Returns

A response created from the parsed status line. Header parsing is performed separately by the base parser.

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