Skip to content

Commit f3d9692

Browse files
committed
simplified with namespace alias
1 parent 38fcdb3 commit f3d9692

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

include/ylt/coro_http/coro_http_client.hpp

+1-10
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,4 @@
2626

2727
#include <cinatra/coro_http_client.hpp>
2828

29-
namespace coro_http {
30-
using coro_http_client = cinatra::coro_http_client;
31-
using req_content_type = cinatra::req_content_type;
32-
using resp_data = cinatra::resp_data;
33-
using http_method = cinatra::http_method;
34-
using http_header = cinatra::http_header;
35-
using uri_t = cinatra::uri_t;
36-
template <typename String = std::string>
37-
using req_context = cinatra::req_context<String>;
38-
} // namespace coro_http
29+
namespace coro_http = cinatra;

include/ylt/coro_http/coro_http_server.hpp

+1-21
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,4 @@
2727

2828
#include <cinatra/coro_http_server.hpp>
2929

30-
namespace coro_http {
31-
using coro_http_server = cinatra::coro_http_server;
32-
using coro_http_request = cinatra::coro_http_request;
33-
using coro_http_response = cinatra::coro_http_response;
34-
using status_type = cinatra::status_type;
35-
using http_method = cinatra::http_method;
36-
using uri_t = cinatra::uri_t;
37-
using req_content_type = cinatra::req_content_type;
38-
39-
constexpr inline auto GET = cinatra::http_method::GET;
40-
constexpr inline auto POST = cinatra::http_method::POST;
41-
constexpr inline auto DEL = cinatra::http_method::DEL;
42-
constexpr inline auto HEAD = cinatra::http_method::HEAD;
43-
constexpr inline auto PUT = cinatra::http_method::PUT;
44-
constexpr inline auto CONNECT = cinatra::http_method::CONNECT;
45-
#ifdef TRACE
46-
#undef TRACE
47-
constexpr inline auto TRACE = cinatra::http_method::TRACE;
48-
#endif
49-
constexpr inline auto OPTIONS = cinatra::http_method::OPTIONS;
50-
} // namespace coro_http
30+
namespace coro_http = cinatra;

0 commit comments

Comments
 (0)