Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mtxclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
mtxclient
Commits
4d152fde
Commit
4d152fde
authored
5 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Fix warning about ignored qualifiers
parent
abc485a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/mtxclient/http/client.hpp
+2
-2
2 additions, 2 deletions
include/mtxclient/http/client.hpp
lib/http/client.cpp
+1
-4
1 addition, 4 deletions
lib/http/client.cpp
with
3 additions
and
6 deletions
include/mtxclient/http/client.hpp
+
2
−
2
View file @
4d152fde
...
@@ -41,7 +41,7 @@ using Callback = std::function<void(const Response &, RequestErr)>;
...
@@ -41,7 +41,7 @@ using Callback = std::function<void(const Response &, RequestErr)>;
template
<
class
Response
>
template
<
class
Response
>
using
HeadersCallback
=
std
::
function
<
void
(
const
Response
&
,
HeaderFields
,
RequestErr
)
>
;
using
HeadersCallback
=
std
::
function
<
void
(
const
Response
&
,
HeaderFields
,
RequestErr
)
>
;
using
TypeErasedCallback
=
std
::
function
<
void
(
const
HeaderFields
&
,
using
TypeErasedCallback
=
std
::
function
<
void
(
HeaderFields
,
const
std
::
string
&
,
const
std
::
string
&
,
const
boost
::
system
::
error_code
&
,
const
boost
::
system
::
error_code
&
,
boost
::
beast
::
http
::
status
)
>
;
boost
::
beast
::
http
::
status
)
>
;
...
@@ -457,7 +457,7 @@ template<class Response>
...
@@ -457,7 +457,7 @@ template<class Response>
mtx
::
http
::
TypeErasedCallback
mtx
::
http
::
TypeErasedCallback
mtx
::
http
::
Client
::
prepare_callback
(
HeadersCallback
<
Response
>
callback
)
mtx
::
http
::
Client
::
prepare_callback
(
HeadersCallback
<
Response
>
callback
)
{
{
auto
type_erased_cb
=
[
callback
](
const
HeaderFields
&
headers
,
auto
type_erased_cb
=
[
callback
](
HeaderFields
headers
,
const
std
::
string
&
body
,
const
std
::
string
&
body
,
const
boost
::
system
::
error_code
&
err_code
,
const
boost
::
system
::
error_code
&
err_code
,
boost
::
beast
::
http
::
status
status_code
)
{
boost
::
beast
::
http
::
status
status_code
)
{
...
...
This diff is collapsed.
Click to expand it.
lib/http/client.cpp
+
1
−
4
View file @
4d152fde
...
@@ -55,10 +55,7 @@ Client::Client(const std::string &server, uint16_t port)
...
@@ -55,10 +55,7 @@ Client::Client(const std::string &server, uint16_t port)
Client
::~
Client
()
{
p
.
reset
();
}
Client
::~
Client
()
{
p
.
reset
();
}
std
::
shared_ptr
<
Session
>
std
::
shared_ptr
<
Session
>
Client
::
create_session
(
std
::
function
<
void
(
const
HeaderFields
&
,
Client
::
create_session
(
TypeErasedCallback
type_erased_cb
)
const
std
::
string
&
,
const
boost
::
system
::
error_code
&
,
boost
::
beast
::
http
::
status
)
>
type_erased_cb
)
{
{
auto
session
=
std
::
make_shared
<
Session
>
(
auto
session
=
std
::
make_shared
<
Session
>
(
std
::
ref
(
p
->
ios_
),
std
::
ref
(
p
->
ios_
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment