Condividi tramite


BasicLineParser.CreateProtocolVersion(Int32, Int32) Method

Definition

Creates a protocol version.

[Android.Runtime.Register("createProtocolVersion", "(II)Lorg/apache/http/ProtocolVersion;", "GetCreateProtocolVersion_IIHandler")]
protected virtual Org.Apache.Http.ProtocolVersion? CreateProtocolVersion (int major, int minor);
[<Android.Runtime.Register("createProtocolVersion", "(II)Lorg/apache/http/ProtocolVersion;", "GetCreateProtocolVersion_IIHandler")>]
abstract member CreateProtocolVersion : int * int -> Org.Apache.Http.ProtocolVersion
override this.CreateProtocolVersion : int * int -> Org.Apache.Http.ProtocolVersion

Parameters

major
Int32

the major version number, for example 1 in HTTP/1.0

minor
Int32

the minor version number, for example 0 in HTTP/1.0

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