Renamed HTTPResponse to HTTPOutgoingResponse.
This commit is contained in:
@@ -69,7 +69,7 @@ void cHTTPMessage::AddHeader(const AString & a_Key, const AString & a_Value)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// cHTTPResponse:
|
||||
|
||||
cHTTPResponse::cHTTPResponse(void) :
|
||||
cHTTPOutgoingResponse::cHTTPOutgoingResponse(void) :
|
||||
super(mkResponse)
|
||||
{
|
||||
}
|
||||
@@ -78,7 +78,7 @@ cHTTPResponse::cHTTPResponse(void) :
|
||||
|
||||
|
||||
|
||||
void cHTTPResponse::AppendToData(AString & a_DataStream) const
|
||||
void cHTTPOutgoingResponse::AppendToData(AString & a_DataStream) const
|
||||
{
|
||||
a_DataStream.append("HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\nContent-Type: ");
|
||||
a_DataStream.append(m_ContentType);
|
||||
|
||||
@@ -65,17 +65,17 @@ protected:
|
||||
|
||||
|
||||
|
||||
class cHTTPResponse :
|
||||
/** Stores outgoing response headers and serializes them to an HTTP data stream. */
|
||||
class cHTTPOutgoingResponse :
|
||||
public cHTTPMessage
|
||||
{
|
||||
typedef cHTTPMessage super;
|
||||
|
||||
public:
|
||||
cHTTPResponse(void);
|
||||
cHTTPOutgoingResponse(void);
|
||||
|
||||
/** Appends the response to the specified datastream - response line and headers.
|
||||
The body will be sent later directly through cConnection::Send()
|
||||
*/
|
||||
The body will be sent later directly through cConnection::Send() */
|
||||
void AppendToData(AString & a_DataStream) const;
|
||||
} ;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
class cHTTPMessage;
|
||||
class cHTTPRequestParser;
|
||||
class cHTTPIncomingRequest;
|
||||
class cHTTPResponse;
|
||||
class cHTTPServerConnection;
|
||||
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ void cHTTPServerConnection::SendNeedAuth(const AString & a_Realm)
|
||||
|
||||
|
||||
|
||||
void cHTTPServerConnection::Send(const cHTTPResponse & a_Response)
|
||||
void cHTTPServerConnection::Send(const cHTTPOutgoingResponse & a_Response)
|
||||
{
|
||||
ASSERT(m_CurrentRequest != nullptr);
|
||||
AString toSend;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
// fwd:
|
||||
class cHTTPServer;
|
||||
class cHTTPResponse;
|
||||
class cHTTPOutgoingResponse;
|
||||
class cHTTPIncomingRequest;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
void SendNeedAuth(const AString & a_Realm);
|
||||
|
||||
/** Sends the headers contained in a_Response */
|
||||
void Send(const cHTTPResponse & a_Response);
|
||||
void Send(const cHTTPOutgoingResponse & a_Response);
|
||||
|
||||
/** Sends the data as the response (may be called multiple times) */
|
||||
void Send(const void * a_Data, size_t a_Size);
|
||||
|
||||
Reference in New Issue
Block a user