Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.89 KB

File metadata and controls

45 lines (35 loc) · 2.89 KB
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

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 [!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

See Also

Web Server Core Interfaces
IHttpContext Interface
IHttpContext::GetConnection Method