Skip to main content
ATL Server Library Reference 
CHttpResponse::ClearHeaders 

Call this method to clear the collection of HTTP response headers maintained by this object.


void ClearHeaders( ) throw( );

Note that clearing the headers includes removing all cookies associated with the response object because cookies are sent to the client as Set-Cookie HTTP headers.