This topic has not yet been rated - Rate this topic

CHttpResponse::Initialize 

Call this method to initialize an HTTP response object.


BOOL Initialize(
   IHttpServerContext* pServerContext 
) throw( );
BOOL Initialize(
   IHttpRequestLookup * pLookup 
) throw(...);

Parameters

pServerContext

The server context.

pLookup

The pointer to the lookup interface used to provide the server context.

Returns TRUE on success, FALSE on failure.

When the constructor overload with the IHttpRequestLookup* parameter is used, the response object is initialized in such a way as to prevent HTTP headers from being sent with the response.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.