語言

BasicLineParser.HasProtocolVersion(CharArrayBuffer, ParserCursor) 方法

定義

檢查某行是否可能存在協定版本。

[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

參數

buffer
CharArrayBuffer

一個緩衝器用來檢查線路

cursor
ParserCursor

就是用來檢查協定版本的游標,或是「線路終止」的負游標。 檢查是否容忍在協定版本前或之後的空白,取決於實作。

傳回

當游標上很可能存在協定版本時,真;否則,則為錯誤。

實作

屬性

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於