Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coeurl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
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
coeurl
Commits
ac934fa8
Verified
Commit
ac934fa8
authored
1 year ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Fix documentation links
parent
3fb00b27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4830
passed
1 year ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/coeurl/client.hpp
+5
-4
5 additions, 4 deletions
include/coeurl/client.hpp
include/coeurl/request.hpp
+2
-2
2 additions, 2 deletions
include/coeurl/request.hpp
with
7 additions
and
6 deletions
include/coeurl/client.hpp
+
5
−
4
View file @
ac934fa8
...
...
@@ -138,15 +138,16 @@ struct Client {
//! Set whether to \a verify the https certificates or not.
void
set_verify_peer
(
bool
verify
)
{
this
->
verify_peer_
=
verify
;
}
/// @brief Query whether certificate verification is enabled or not
/// @sa set_verify_peer
bool
does_verify_peer
()
{
return
this
->
verify_peer_
;
}
/// @sa set_verify_peer
(bool)
bool
does_verify_peer
()
const
{
return
this
->
verify_peer_
;
}
//! Set whether or not to log curl requests verbosely.
/// @sa verbose and also CURLOPT_VERBOSE
/// @sa verbose() const
/// @sa https://curl.se/libcurl/c/CURLOPT_VERBOSE.html
void
verbose
(
bool
verbose
)
{
this
->
verbose_logging_
=
verbose
;
}
/// @brief Query whether verbose logging is enabled or not
/// @sa verbose(bool)
bool
verbose
()
{
return
this
->
verbose_logging_
;
}
bool
verbose
()
const
{
return
this
->
verbose_logging_
;
}
//! Timeout connection after the specified amount of seconds, if the server
//! stops sending acks.
...
...
This diff is collapsed.
Click to expand it.
include/coeurl/request.hpp
+
2
−
2
View file @
ac934fa8
...
...
@@ -55,7 +55,7 @@ struct Request {
//! "application/octet-stream".
Request
&
request
(
std
::
string
r
,
std
::
string
contenttype
=
"application/octet-stream"
);
/// @brief Headers for this request.
/// @sa request_headers
/// @sa request_headers
() const
Request
&
request_headers
(
const
Headers
&
h
);
//! Timeout connection after the specified amount of seconds, if the server
//! stops sending acks.
...
...
@@ -77,7 +77,7 @@ struct Request {
//! The curl error code. CURLE_OK (0) on success.
CURLcode
error_code
()
const
{
return
curl_error
;
}
/// @brief Headers for the response
/// @sa request_headers
/// @sa request_headers
(std::string, std::string)
Headers
response_headers
()
const
{
return
response_headers_
;
}
private
:
...
...
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