Class to hold the Link
-header.
More...
#include <easy.hpp>
Class to hold the Link
-header.
Extracts max_id and since_id from the Link
-header
- Since
- before 0.11.0
◆ Link()
Easy::Link::Link |
( |
const string & |
link_header | ) |
|
|
explicit |
- Parameters
-
link_header | The content of the Link header |
- Since
- before 0.11.0
91 std::regex renext(
"max_id=([[:digit:]]*)");
92 std::regex reprev(
"since_id=([[:digit:]]*)");
95 if (std::regex_search(link_header, match, renext))
97 _next = match[1].str();
99 if (std::regex_search(link_header, match, reprev))
101 _prev = match[1].str();
◆ max_id()
const string Easy::Link::max_id |
( |
| ) |
const |
Returns max_id.
- Since
- before 0.11.0
◆ next()
const string Easy::Link::next |
( |
| ) |
const |
Returns max_id.
- Since
- before 0.11.0
◆ prev()
const string Easy::Link::prev |
( |
| ) |
const |
Returns since_id.
- Since
- before 0.11.0
◆ since_id()
const string Easy::Link::since_id |
( |
| ) |
const |
Returns since_id.
- Since
- before 0.11.0
The documentation for this class was generated from the following files: