Share via


HttpProtocolSection Class [IIS 7 and higher]

Represents an HTTP protocol configuration section.

Syntax

class HttpProtocolSection : ConfigurationSectionWithCollection

Methods

The following table lists the methods exposed by the HttpProtocolSection class.

Name

Description

Add

(Inherited from ConfigurationSectionWithCollection.)

Clear

(Inherited from ConfigurationSectionWithCollection.)

Get

(Inherited from ConfigurationSectionWithCollection.)

GetAllowDefinition

(Inherited from ConfigurationSection.)

GetAllowLocation

(Inherited from ConfigurationSection.)

Remove

(Inherited from ConfigurationSectionWithCollection.)

RevertToParent

(Inherited from ConfigurationSection.)

SetAllowDefinition

(Inherited from ConfigurationSection.)

SetAllowLocation

(Inherited from ConfigurationSection.)

Properties

The following table lists the properties exposed by the HttpProtocolSection class.

Name

Description

AllowKeepAlive

A boolean value. true if IIS keeps client/server connections open across multiple requests to the server; otherwise, false. The default is true.

An open connection improves performance when a client makes multiple requests for Web page content. If this property is false, the server has to open a new connection for every request.

NoteNote:
You must use an HTTP Keep-Alive header when you use integrated security or connection-based authentication services such as Integrated Windows authentication.

CustomHeaders

A CustomHeaderSettings value that contains name/value pairs that are added to the HTTP headers in responses from the Web server.

Location

(Inherited from ConfigurationSection.) A key property.

Path

(Inherited from ConfigurationSection.) A key property.

RedirectHeaders

A RedirectHeaderSettings value that contains redirect name/value pairs that are added to the HTTP headers in responses from the Web server.

SectionInformation

(Inherited from ConfigurationSection.)

Subclasses

This class contains no subclasses.

Inheritance Hierarchy

ConfigurationSection

   ConfigurationSectionWithCollection

      HttpProtocolSection

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

ConfigurationSectionWithCollection Class [IIS 7 and higher]

CustomHeaderSettings Class [IIS 7 and higher]

NameValueConfigurationElement Class [IIS 7 and higher]

RedirectHeaderSettings Class [IIS 7 and higher]