описал интерфейсную часть аутентификации, пока оставил без реализации
This commit is contained in:
@@ -30,7 +30,7 @@ http::resource::StaticFileResource::StaticFileResource(const std::string &path,
|
||||
#endif
|
||||
}
|
||||
|
||||
void http::resource::StaticFileResource::handle(const server::Request &req, server::reply &rep) {
|
||||
void http::resource::StaticFileResource::handle(const server::Request &req, server::Reply &rep) {
|
||||
if (req.method != "GET") {
|
||||
stockReply(server::bad_request, rep);
|
||||
return;
|
||||
@@ -56,7 +56,7 @@ http::resource::GenericResource::GenericResource(const std::string &path, const
|
||||
this->path = path;
|
||||
}
|
||||
|
||||
void http::resource::GenericResource::handle(const server::Request &req, server::reply &rep) {
|
||||
void http::resource::GenericResource::handle(const server::Request &req, server::Reply &rep) {
|
||||
this->generator_(req, rep);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user