IHttpConnection Interface

IIS 7.0

Provides an interface for connection-specific information.

class IHttpConnection  

The following table lists the methods exposed by the IHttpConnection interface.

AllocateMemoryAllocates a specified amount of memory.
GetModuleContextContainerReturns the module context container for the connection.
IsConnectedDetermines 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.

Client- IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server- IIS 7.0 on Windows Server 2008
- 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 Technical Preview
Product- IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
- IIS Express 7.5, IIS Express 8.0, IIS Express 10.0

Web Server Core Interfaces
IHttpContext Interface
IHttpContext::GetConnection Method