mime_types.hpp 625 B

123456789101112131415161718192021222324252627
  1. //
  2. // mime_types.hpp
  3. // ~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef HTTP_MIME_TYPES_HPP
  11. #define HTTP_MIME_TYPES_HPP
  12. #include <string>
  13. namespace http {
  14. namespace server {
  15. namespace mime_types {
  16. /// Convert a file extension into a MIME type.
  17. std::string extension_to_type(const std::string& extension);
  18. } // namespace mime_types
  19. } // namespace server
  20. } // namespace http
  21. #endif // HTTP_MIME_TYPES_HPP