Skip to content

Commit 5e5ea9e

Browse files
committed
Code cleanup
1 parent 5e14cda commit 5e5ea9e

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

httplib.h

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,17 +1011,6 @@ using ErrorLogger = std::function<void(const Error &, const Request *)>;
10111011

10121012
using SocketOptions = std::function<void(socket_t sock)>;
10131013

1014-
namespace detail {
1015-
1016-
bool set_socket_opt_impl(socket_t sock, int level, int optname,
1017-
const void *optval, socklen_t optlen);
1018-
bool set_socket_opt(socket_t sock, int level, int optname, int opt);
1019-
bool set_socket_opt_time(socket_t sock, int level, int optname, time_t sec,
1020-
time_t usec);
1021-
int close_socket(socket_t sock);
1022-
1023-
} // namespace detail
1024-
10251014
void default_socket_options(socket_t sock);
10261015

10271016
const char *status_message(int status);
@@ -1102,10 +1091,9 @@ class RegexMatcher final : public MatcherBase {
11021091
std::regex regex_;
11031092
};
11041093

1105-
ssize_t write_headers(Stream &strm, const Headers &headers);
1094+
int close_socket(socket_t sock);
11061095

1107-
std::string make_host_and_port_string(const std::string &host, int port,
1108-
bool is_ssl);
1096+
ssize_t write_headers(Stream &strm, const Headers &headers);
11091097

11101098
} // namespace detail
11111099

@@ -2609,6 +2597,9 @@ struct FileStat {
26092597
int ret_ = -1;
26102598
};
26112599

2600+
std::string make_host_and_port_string(const std::string &host, int port,
2601+
bool is_ssl);
2602+
26122603
std::string trim_copy(const std::string &s);
26132604

26142605
void divide(

0 commit comments

Comments
 (0)