Skip to main content
ATL Server Library Reference 
CHttpResponse Members 

Methods

AppendCookie

Call this method to add a Set-Cookie header to the collection of HTTP headers managed by this object.

AppendHeader

Call this method to append a header to the collection of HTTP headers managed by this object.

AsyncFlush

Call this method to write buffered data to the client asynchronously.

AsyncPrep

Call this method to prepare an HTTP response object for writing asynchronously.

CHttpResponse

The constructor.

~CHttpResponse

The destructor.

ClearContent

Call this method to clear the response buffer without sending the contents to the client.

ClearHeaders

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

ClearResponse

Call this method to clear the response object of any headers and the contents of the buffer.

DeleteCookie

Call this method to add a Set-Cookie header to the collection of HTTP headers managed by this object that will tell the client to discard a cookie value that it already holds.

Detach

Call this method to release the server context held by this object to ensure that any buffered data will not be sent when the destructor is called.

Flush

Call this method to empty the response buffer and send its current contents to the client.

FlushStream

Call this method to empty the response buffer and send its current contents to the client.

GetBufferLimit

Returns the current size limit of the response buffer in bytes.

GetBufferOutput

Call this method to determine whether data written to the response object is being buffered or not.

GetContentType

Call this method to get the content type from an HTTP response object.

GetServerContext

Call this method to get the server context from an HTTP response object.

GetStatusCode

Call this method to get the status code from an HTTP response object.

GetWriteToClient

Call this method to determine whether or not the response body will be sent to the client.

HaveSentHeaders

Call this method to find out or specify whether response headers have been sent to the client.

Initialize

Call this method to initialize an HTTP response object.

Redirect

Call this method to redirect the client to a different resource.

RenderHeaders

Call this method to get a string containing all of the HTTP headers associated with this object in a format suitable for sending to a client.

SendHeadersInternal

Call this method to send the current headers associated with this object to the client.

SetBufferLimit

Call this method to set a size limit on the amount of data buffered by the response object.

SetBufferOutput

Call this method to set buffering options for the response.

SetCacheControl

Call this method to set the Cache-Control HTTP header of the response.

SetContentType

Call this method to set the content type of the HTTP response.

SetExpires

Call this method to set the Expires header of the HTTP response.

SetExpiresAbsolute

Call this method to set the expiration time of the HTTP response.

SetStatusCode

Call this method to set the HTTP status code of the response.

SetWriteToClient

Call this method to specify whether a response body will be sent to the client.

TransmitFile

Call this method to transmit a file as the HTTP response.

WriteLen

Call this method to write data to the body of the HTTP response.

WriteStream

Call this method to write data to the response object.

Data Members

m_strContent

This data member holds the buffered content.

Enums

HTTP_REDIRECT

This enumeration defines the values for the HTTP status codes used to redirect a client to another resource.

See Also