class HTTPDaemonDelegate\r
{\r
public:\r
- virtual HTTPResponse *request(HTTPRequest *request, struct sockaddr_in *client) = 0;\r
+ virtual HTTPRequest *readRequest(SOCKET sock) = 0;\r
+ virtual HTTPResponse *request(HTTPRequest *request, SOCKET sock, struct sockaddr_in *client) = 0;\r
\r
};\r
\r
\r
HTTPResponse *responseWithReason(Raym::String *reason, int status, Raym::String *version);\r
HTTPResponse *responseWithPath(Raym::String *path, HTTPRequest *request);\r
+ static HTTPResponse *responseOfUnnecessary();\r
static Raym::String *reasonForStatus(int status);\r
\r
// for internal use\r