| title | IHttpConnection Interface |
|---|---|
| description | Describes the IHttpConnection interface and details its syntax, methods, derived classes, remarks, and requirements. |
| ms.date | 10/07/2016 |
| ms.assetid | b4c860fc-5e1a-e3ce-ec6c-c1fdda229eed |
Provides an interface for connection-specific information.
class IHttpConnection The following table lists the methods exposed by the IHttpConnection interface.
| Name | Description |
|---|---|
| AllocateMemory | Allocates a specified amount of memory. |
| GetModuleContextContainer | Returns the module context container for the connection. |
| IsConnected | Determines whether a Web client is still connected to the current request. |
This interface contains no derived classes.
HTTP modules can use the IHttpConnection interface to retrieve information related to the connection for the current context. For example, you can use the IsConnected method to determine whether a Web client has disconnected its session.
To retrieve an IHttpConnection interface, your module needs to call the IHttpContext::GetConnection method.
| Type | Description |
|---|---|
| Client | - IIS 7.0 on [!INCLUDEwinvista] - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
| Server | - IIS 7.0 on [!INCLUDEwinsrv2008] - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
| Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 - [!INCLUDEiisexp75], [!INCLUDEiisexp80], [!INCLUDEiisexp100] |
| Header | Httpserv.h |
Web Server Core Interfaces
IHttpContext Interface
IHttpContext::GetConnection Method