Condividi tramite


ILineParser.HasProtocolVersion(CharArrayBuffer, ParserCursor) Method

Definition

Checks whether there likely is a protocol version in a line.

[Android.Runtime.Register("hasProtocolVersion", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Z", "GetHasProtocolVersion_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_message_ParserCursor_Handler:Org.Apache.Http.Message.ILineParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool HasProtocolVersion (Org.Apache.Http.Util.CharArrayBuffer? buffer, Org.Apache.Http.Message.ParserCursor? cursor);
[<Android.Runtime.Register("hasProtocolVersion", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Z", "GetHasProtocolVersion_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_message_ParserCursor_Handler:Org.Apache.Http.Message.ILineParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member HasProtocolVersion : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.Message.ParserCursor -> bool

Parameters

buffer
CharArrayBuffer

a buffer holding the line to inspect

cursor
ParserCursor

the cursor at which to check for a protocol version, or negative for "end of line". Whether the check tolerates whitespace before or after the protocol version is implementation dependent.

Returns

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