Skip to content

Commit 525191e

Browse files
committed
Make HTTPRequest::parseUrl public and static.
1 parent 36abe4a commit 525191e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/common/HTTPRequest.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
class HTTPRequest
99
{
1010
public:
11-
typedef std::function<Connection *()> ConnectionFactory;
12-
HTTPRequest(ConnectionFactory factory);
13-
14-
HTTPSClient::Reply request(const HTTPSClient::Request &req);
15-
16-
private:
17-
ConnectionFactory factory;
18-
1911
struct DissectedURL
2012
{
2113
bool valid;
@@ -25,6 +17,14 @@ class HTTPRequest
2517
std::string query;
2618
// TODO: Auth?
2719
};
20+
typedef std::function<Connection *()> ConnectionFactory;
21+
22+
HTTPRequest(ConnectionFactory factory);
23+
24+
HTTPSClient::Reply request(const HTTPSClient::Request &req);
25+
26+
static DissectedURL parseUrl(const std::string &url);
2827

29-
DissectedURL parseUrl(const std::string &url);
28+
private:
29+
ConnectionFactory factory;
3030
};

0 commit comments

Comments
 (0)