Sdílet prostřednictvím


BasicLineParser.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")]
public virtual 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")>]
abstract member HasProtocolVersion : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.Message.ParserCursor -> bool
override this.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

Implements

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