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
7679b5fe
Commit
7679b5fe
authored
Aug 09, 2018
by
Jennifer Buehler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added parameters iterator
parent
9267aa96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
include/pistache/http.h
include/pistache/http.h
+14
-3
No files found.
include/pistache/http.h
View file @
7679b5fe
...
...
@@ -100,14 +100,25 @@ namespace Uri {
bool
has
(
const
std
::
string
&
name
)
const
;
// Return empty string or "?key1=value1&key2=value2" if query exist
std
::
string
as_str
()
const
;
void
clear
()
{
params
.
clear
();
}
// \brief Return iterator to the beginning of the parameters map
std
::
unordered_map
<
std
::
string
,
std
::
string
>::
const_iterator
parameters_begin
()
const
{
return
params
.
begin
();
}
// \brief Return iterator to the end of the parameters map
std
::
unordered_map
<
std
::
string
,
std
::
string
>::
const_iterator
parameters_end
()
const
{
return
params
.
begin
();
}
// \brief returns all parameters given in the query
std
::
vector
<
std
::
string
>
parameters
()
const
{
std
::
vector
<
std
::
string
>
parameters
()
const
{
std
::
vector
<
std
::
string
>
keys
;
std
::
transform
(
params
.
begin
(),
params
.
end
(),
std
::
back_inserter
(
keys
),
[](
const
std
::
unordered_map
<
std
::
string
,
std
::
string
>::
value_type
...
...
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