System.Net.HttpVersion Class

public class HttpVersion

Base Types

Object
  HttpVersion

Assembly

System

Library

Networking

Summary

Defines the HTTP version numbers supported by HttpWebRequest and HttpWebResponse .

Description

[Note: This class defines the HTTP versions supported by HttpWebRequest and HttpWebResponse. The HTTP version number is used to control version-specific features of HTTP, such as pipelining and chunking.]

See Also

System.Net Namespace

Members

HttpVersion Constructors

HttpVersion Constructor

HttpVersion Fields

HttpVersion.Version10 Field
HttpVersion.Version11 Field


HttpVersion Constructor

protected HttpVersion();

Summary

Constructs a new instance of the HttpVersion class.

See Also

System.Net.HttpVersion Class, System.Net Namespace

HttpVersion.Version10 Field

public static readonly Version Version10;

Summary

Defines a Version instance for HTTP 1.0.

Description

This field represents a Version with a System.Version.Major value equal to 1, and a System.Version.Minor value equal to 0.

See Also

System.Net.HttpVersion Class, System.Net Namespace

HttpVersion.Version11 Field

public static readonly Version Version11;

Summary

Defines a Version instance for HTTP 1.1.

Description

This field represents a Version with a System.Version.Major value equal to 1, and a System.Version.Minor value equal to 1.

See Also

System.Net.HttpVersion Class, System.Net Namespace