fix indentation
This commit is contained in:
parent
8c16686150
commit
992458ae4b
@ -47,25 +47,25 @@ const std::string okString = "HTTP/1.0 200 OK\r\n";
|
|||||||
const std::string badRequestString = "HTTP/1.0 400 Bad Request\r\n";
|
const std::string badRequestString = "HTTP/1.0 400 Bad Request\r\n";
|
||||||
const std::string internalServerErrorString = "HTTP/1.0 500 Internal Server Error\r\n";
|
const std::string internalServerErrorString = "HTTP/1.0 500 Internal Server Error\r\n";
|
||||||
|
|
||||||
class Reply {
|
class Reply {
|
||||||
public:
|
public:
|
||||||
enum status_type {
|
enum status_type {
|
||||||
ok = 200,
|
ok = 200,
|
||||||
badRequest = 400,
|
badRequest = 400,
|
||||||
internalServerError = 500
|
internalServerError = 500
|
||||||
} status;
|
} status;
|
||||||
|
|
||||||
|
|
||||||
std::vector<Header> headers;
|
std::vector<Header> headers;
|
||||||
std::vector<boost::asio::const_buffer> toBuffers();
|
std::vector<boost::asio::const_buffer> toBuffers();
|
||||||
std::vector<boost::asio::const_buffer> HeaderstoBuffers();
|
std::vector<boost::asio::const_buffer> HeaderstoBuffers();
|
||||||
std::vector<std::string> content;
|
std::vector<std::string> content;
|
||||||
static Reply StockReply(status_type status);
|
static Reply StockReply(status_type status);
|
||||||
void setSize(const unsigned size);
|
void setSize(const unsigned size);
|
||||||
Reply();
|
Reply();
|
||||||
private:
|
private:
|
||||||
static std::string ToString(Reply::status_type status);
|
static std::string ToString(Reply::status_type status);
|
||||||
boost::asio::const_buffer ToBuffer(Reply::status_type status);
|
boost::asio::const_buffer ToBuffer(Reply::status_type status);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user