FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
expresscpp/include/expresscpp/url.hpp at master · Neko-Life/expresscpp · GitHub
Neko-Life
/
expresscpp
Public
forked from
expresscpp/expresscpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
expresscpp
/
include
/
expresscpp
/
url.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (27 loc) · 798 Bytes
Breadcrumbs
expresscpp
/
include
/
expresscpp
/
url.hpp
Copy path
File metadata and controls
34 lines (27 loc) · 798 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
pragma
once
#
include
<
string
>
#
include
"
expresscpp/exports.hpp
"
namespace
expresscpp
{
struct
EXPRESSCPP_API
Url {
std::string host;
std::string hostname;
std::string pathname;
std::string href;
std::string path;
std::
uint16_t
port;
std::string protocol;
std::string query;
std::string search;
std::string slashes;
};
//
! @brief used for the fetch method to convert "https://localhost:8081/asdfasdf" into this struct
struct
ParsedURI
{
std::string protocol;
std::string domain;
//
only domain must be present
std::string port;
std::string resource;
std::string query;
//
everything after '?', possibly nothing
};
//
! @brief converts "https://localhost:8081/asdfasdf" into this ParsedURI
ParsedURI
parseURI
(
const
std::string& url);
}
//
namespace expresscpp
Back
|
FazBrowse Home
|
New Git URL