Org.Apache.Http.Message.BasicLineParser.HasProtocolVersion Method
Checks whether there likely is a protocol version in a line.

Syntax

[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, ParserCursor cursor)

Parameters

buffer
a buffer holding the line to inspect
cursor
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

Documentation for this section has not yet been entered.

Remarks

Checks whether there likely is a protocol version in a line. This method implements a heuristic to check for a likely protocol version specification. It does not guarantee that ILineParser.ParseProtocolVersion(Org.Apache.Http.Util.CharArrayBuffer, Org.Apache.Http.Message.ParserCursor) would not detect a parse error. This can be used to detect garbage lines before a request or status line.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Message
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1