All sorts of new crap and adjustments
This commit is contained in:
1 parent
5bd9e9ca21
commit
ff2c2b7432
84 files changed
+5935
-664
No files matched your search
+10
-10
@@ -39,7 +39,7 @@ namespace coreutils {
|
||||
/// @return the complete response string to send to client.
|
||||
///
|
||||
|
||||
std::string getResponse(Mode mode = LENGTH);
|
||||
std::stringstream getResponse(Mode mode = LENGTH);
|
||||
|
||||
///
|
||||
/// Returns the response plus the content passed as a parameter.
|
||||
@@ -53,7 +53,7 @@ namespace coreutils {
|
||||
/// @return the complete response string to send to client.
|
||||
///
|
||||
|
||||
std::string getResponse(std::string content, Mode mode = LENGTH);
|
||||
std::stringstream getResponse(std::stringstream &content, Mode mode = LENGTH);
|
||||
|
||||
///
|
||||
/// Sets the protocol value for the response message. The protocol
|
||||
@@ -62,7 +62,7 @@ namespace coreutils {
|
||||
/// @param protocol the protocol value to return in response.
|
||||
///
|
||||
|
||||
void setProtocol(std::string protocol);
|
||||
void setProtocol(ZString protocol);
|
||||
|
||||
///
|
||||
/// Sets the return code value for the response.
|
||||
@@ -70,7 +70,7 @@ namespace coreutils {
|
||||
/// @param code the response code value to return in the response.
|
||||
///
|
||||
|
||||
void setCode(std::string code);
|
||||
void setCode(ZString code);
|
||||
|
||||
///
|
||||
/// Sets the return code string value for the response.
|
||||
@@ -79,16 +79,16 @@ namespace coreutils {
|
||||
/// the response.
|
||||
///
|
||||
|
||||
void setText(std::string text);
|
||||
void setText(ZString text);
|
||||
|
||||
void setCookie(std::string name, std::string value);
|
||||
void setCookie(ZString key, ZString data);
|
||||
|
||||
private:
|
||||
std::string protocol;
|
||||
std::string code;
|
||||
std::string text;
|
||||
ZString protocol;
|
||||
ZString code;
|
||||
ZString text;
|
||||
|
||||
std::string CRLF = "\r\n";
|
||||
const char *CRLF = "\r\n";
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user