Function CSPResponse::AddHeader()
Description:
Appends a custom header to the HTTP request.
 |
Prototype:
void AddHeader(const CSPString& strName, const CSPString& strContent);
Arguments:
- const CSPString& strName [IN]
Name of the HTTP header.
- const CSPString& strContent [IN]
Content of the HTTP header.
Return value:
No return value (void).
Remarks:
This function should be called before any data is sent to the client.
Examples:
Response.AddHeader( "Cache-control", "private" );
|
|