Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
7994c1a5
Commit
7994c1a5
authored
Mar 27, 2023
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing exports
parent
455d1ec5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
libcaf_net/caf/net/http/route.hpp
libcaf_net/caf/net/http/route.hpp
+5
-4
No files found.
libcaf_net/caf/net/http/route.hpp
View file @
7994c1a5
...
...
@@ -5,6 +5,7 @@
#pragma once
#include "caf/byte_span.hpp"
#include "caf/detail/net_export.hpp"
#include "caf/intrusive_ptr.hpp"
#include "caf/net/fwd.hpp"
#include "caf/net/http/arg_parser.hpp"
...
...
@@ -19,7 +20,7 @@
namespace
caf
::
net
::
http
{
/// Represents a single route for HTTP requests at a server.
class
route
:
public
ref_counted
{
class
CAF_NET_EXPORT
route
:
public
ref_counted
{
public:
virtual
~
route
();
...
...
@@ -44,11 +45,11 @@ public:
namespace
caf
::
detail
{
/// Counts how many `<arg>` entries are in `path`.
size_t
args_in_path
(
std
::
string_view
path
);
size_t
CAF_NET_EXPORT
args_in_path
(
std
::
string_view
path
);
/// Splits `str` in the first component of a path and its remainder.
std
::
pair
<
std
::
string_view
,
std
::
string_view
>
next_path_component
(
std
::
string_view
str
);
CAF_NET_EXPORT
next_path_component
(
std
::
string_view
str
);
/// Matches two paths by splitting both inputs at '/' and then checking that
/// `predicate` holds for each resulting pair.
...
...
@@ -170,7 +171,7 @@ private:
/// A simple implementation for `http::route` that does not parse any arguments
/// from the requests and simply calls the user-provided function object.
class
http_simple_route_base
:
public
net
::
http
::
route
{
class
CAF_NET_EXPORT
http_simple_route_base
:
public
net
::
http
::
route
{
public:
http_simple_route_base
(
std
::
string
&&
path
,
std
::
optional
<
net
::
http
::
method
>
method
)
...
...
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