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
ae146fa7
Unverified
Commit
ae146fa7
authored
Nov 30, 2020
by
Igor [hyperxor]
Committed by
GitHub
Nov 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue #798 - Part 2: Add getting body by const reference (#850)
parent
ae0da38c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
include/pistache/http.h
include/pistache/http.h
+2
-1
src/common/http.cc
src/common/http.cc
+3
-1
No files found.
include/pistache/http.h
View file @
ae146fa7
...
...
@@ -83,7 +83,8 @@ public:
Version
version
()
const
;
Code
code
()
const
;
std
::
string
body
()
const
;
const
std
::
string
&
body
()
const
;
std
::
string
body
();
const
CookieJar
&
cookies
()
const
;
CookieJar
&
cookies
();
...
...
src/common/http.cc
View file @
ae146fa7
...
...
@@ -537,7 +537,9 @@ Version Message::version() const { return version_; }
Code
Message
::
code
()
const
{
return
code_
;
}
std
::
string
Message
::
body
()
const
{
return
body_
;
}
const
std
::
string
&
Message
::
body
()
const
{
return
body_
;
}
std
::
string
Message
::
body
()
{
return
body_
;
}
const
Header
::
Collection
&
Message
::
headers
()
const
{
return
headers_
;
}
...
...
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