IHttpConnection Interface
Provides an interface for connection-specific information.
Syntax
class IHttpConnection
Methods
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. |
Derived Classes
This interface contains no derived classes.
Remarks
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.
Requirements
Type | Description |
---|---|
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 |
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 |
Header | Httpserv.h |
See Also
Web Server Core Interfaces
IHttpContext Interface
IHttpContext::GetConnection Method