|
| 1 | +// |
| 2 | +// httplib.h |
| 3 | +// |
| 4 | +// Copyright (c) 2025 Yuji Hirose. All rights reserved. |
| 5 | +// MIT License |
| 6 | +// |
| 7 | + |
| 8 | +module; |
| 9 | + |
| 10 | +#include "../httplib.h" |
| 11 | + |
| 12 | +export module httplib; |
| 13 | + |
| 14 | +export namespace httplib { |
| 15 | + using httplib::SSLVerifierResponse; |
| 16 | + using httplib::StatusCode; |
| 17 | + using httplib::Headers; |
| 18 | + using httplib::Params; |
| 19 | + using httplib::Match; |
| 20 | + using httplib::DownloadProgress; |
| 21 | + using httplib::UploadProgress; |
| 22 | + using httplib::Response; |
| 23 | + using httplib::ResponseHandler; |
| 24 | + using httplib::FormData; |
| 25 | + using httplib::FormField; |
| 26 | + using httplib::FormFields; |
| 27 | + using httplib::FormFiles; |
| 28 | + using httplib::MultipartFormData; |
| 29 | + using httplib::UploadFormData; |
| 30 | + using httplib::UploadFormDataItems; |
| 31 | + using httplib::DataSink; |
| 32 | + using httplib::ContentProvider; |
| 33 | + using httplib::ContentProviderWithoutLength; |
| 34 | + using httplib::ContentProviderResourceReleaser; |
| 35 | + using httplib::FormDataProvider; |
| 36 | + using httplib::FormDataProviderItems; |
| 37 | + using httplib::ContentReceiverWithProgress; |
| 38 | + using httplib::ContentReceiver; |
| 39 | + using httplib::FormDataHeader; |
| 40 | + using httplib::ContentReader; |
| 41 | + using httplib::Range; |
| 42 | + using httplib::Ranges; |
| 43 | + using httplib::Request; |
| 44 | + using httplib::Response; |
| 45 | + using httplib::Error; |
| 46 | + using httplib::to_string; |
| 47 | + using httplib::operator<<; |
| 48 | + using httplib::Stream; |
| 49 | + using httplib::TaskQueue; |
| 50 | + using httplib::ThreadPool; |
| 51 | + using httplib::Logger; |
| 52 | + using httplib::ErrorLogger; |
| 53 | + using httplib::SocketOptions; |
| 54 | + using httplib::default_socket_options; |
| 55 | + using httplib::status_message; |
| 56 | + using httplib::get_bearer_token_auth; |
| 57 | + using httplib::Server; |
| 58 | + using httplib::Result; |
| 59 | + using httplib::ClientConnection; |
| 60 | + using httplib::ClientImpl; |
| 61 | + using httplib::Client; |
| 62 | + |
| 63 | + #ifdef CPPHTTPLIB_OPENSSL_SUPPORT |
| 64 | + using httplib::SSLServer; |
| 65 | + using httplib::SSLClient; |
| 66 | + #endif |
| 67 | + |
| 68 | + using httplib::hosted_at; |
| 69 | + using httplib::encode_uri_component; |
| 70 | + using httplib::encode_uri; |
| 71 | + using httplib::decode_uri_component; |
| 72 | + using httplib::decode_uri; |
| 73 | + using httplib::encode_path_component; |
| 74 | + using httplib::decode_path_component; |
| 75 | + using httplib::encode_query_component; |
| 76 | + using httplib::decode_query_component; |
| 77 | + using httplib::append_query_params; |
| 78 | + using httplib::make_range_header; |
| 79 | + using httplib::make_basic_authentication_header; |
| 80 | + |
| 81 | + using httplib::get_client_ip; |
| 82 | + |
| 83 | + namespace stream { |
| 84 | + using httplib::stream::Result; |
| 85 | + using httplib::stream::Get; |
| 86 | + using httplib::stream::Post; |
| 87 | + using httplib::stream::Put; |
| 88 | + using httplib::stream::Patch; |
| 89 | + using httplib::stream::Delete; |
| 90 | + using httplib::stream::Head; |
| 91 | + using httplib::stream::Options; |
| 92 | + } |
| 93 | +} |
0 commit comments