Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
37e4dfa5
Commit
37e4dfa5
authored
Oct 02, 2018
by
Ian Roddis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding missing handlers
parent
4fc5321f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
include/pistache/description.h
include/pistache/description.h
+5
-0
src/common/description.cc
src/common/description.cc
+25
-0
No files found.
include/pistache/description.h
View file @
37e4dfa5
...
...
@@ -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
);
...
...
src/common/description.cc
View file @
37e4dfa5
...
...
@@ -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_
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment