1 | #ifndef CPR_UNIX_SOCKET_H |
---|---|
2 | #define CPR_UNIX_SOCKET_H |
3 | |
4 | #include <string> |
5 | |
6 | namespace cpr { |
7 | |
8 | class UnixSocket { |
9 | public: |
10 | // NOLINTNEXTLINE(google-explicit-constructor, hicpp-explicit-conversions) |
11 | UnixSocket(std::string unix_socket) : unix_socket_(std::move(unix_socket)) {} |
12 | |
13 | const char* GetUnixSocketString() const noexcept; |
14 | |
15 | private: |
16 | const std::string unix_socket_; |
17 | }; |
18 | |
19 | } // namespace cpr |
20 | |
21 | #endif |
22 |