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
616ead2c
Unverified
Commit
616ead2c
authored
Nov 28, 2020
by
Igor [hyperxor]
Committed by
GitHub
Nov 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide access to request parser object from clients (#846)
parent
fdcf5274
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/pistache/peer.h
include/pistache/peer.h
+4
-3
No files found.
include/pistache/peer.h
View file @
616ead2c
...
@@ -30,6 +30,7 @@ class Transport;
...
@@ -30,6 +30,7 @@ class Transport;
class
Peer
{
class
Peer
{
public:
public:
friend
class
Transport
;
friend
class
Transport
;
friend
class
Http
::
Handler
;
~
Peer
();
~
Peer
();
...
@@ -42,9 +43,6 @@ public:
...
@@ -42,9 +43,6 @@ public:
void
*
ssl
()
const
;
void
*
ssl
()
const
;
void
setParser
(
std
::
shared_ptr
<
Http
::
RequestParser
>
parser
);
std
::
shared_ptr
<
Http
::
RequestParser
>
getParser
()
const
;
Async
::
Promise
<
ssize_t
>
send
(
const
RawBuffer
&
buffer
,
int
flags
=
0
);
Async
::
Promise
<
ssize_t
>
send
(
const
RawBuffer
&
buffer
,
int
flags
=
0
);
size_t
getID
()
const
;
size_t
getID
()
const
;
...
@@ -52,6 +50,9 @@ protected:
...
@@ -52,6 +50,9 @@ protected:
Peer
(
Fd
fd
,
const
Address
&
addr
,
void
*
ssl
);
Peer
(
Fd
fd
,
const
Address
&
addr
,
void
*
ssl
);
private:
private:
void
setParser
(
std
::
shared_ptr
<
Http
::
RequestParser
>
parser
);
std
::
shared_ptr
<
Http
::
RequestParser
>
getParser
()
const
;
void
associateTransport
(
Transport
*
transport
);
void
associateTransport
(
Transport
*
transport
);
Transport
*
transport
()
const
;
Transport
*
transport
()
const
;
...
...
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