Commit 37e4dfa5 authored by Ian Roddis's avatar Ian Roddis

Adding missing handlers

parent 4fc5321f
......@@ -399,10 +399,15 @@ public:
return *this;
}
Schema::PathDecl options(std::string name);
Schema::PathDecl get(std::string name);
Schema::PathDecl post(std::string name);
Schema::PathDecl head(std::string name);
Schema::PathDecl put(std::string name);
Schema::PathDecl patch(std::string name);
Schema::PathDecl del(std::string name);
Schema::PathDecl trace(std::string name);
Schema::PathDecl connect(std::string name);
Schema::SubPath path(std::string name);
......
......@@ -281,6 +281,11 @@ Description::basePath(std::string value) {
return *this;
}
Schema::PathDecl
Description::options(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Options);
}
Schema::PathDecl
Description::get(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Get);
......@@ -291,16 +296,36 @@ Description::post(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Post);
}
Schema::PathDecl
Description::head(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Head);
}
Schema::PathDecl
Description::put(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Put);
}
Schema::PathDecl
Description::patch(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Patch);
}
Schema::PathDecl
Description::del(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Delete);
}
Schema::PathDecl
Description::trace(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Trace);
}
Schema::PathDecl
Description::connect(std::string name) {
return Schema::PathDecl(std::move(name), Http::Method::Connect);
}
Schema::SubPath
Description::path(std::string name) {
return Schema::SubPath(std::move(name), &paths_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment