]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/include/seastar/http/mime_types.hh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / seastar / include / seastar / http / mime_types.hh
1 //
2 // mime_types.hpp
3 // ~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2013 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
11 #pragma once
12
13 #include <seastar/core/sstring.hh>
14
15 namespace seastar {
16
17 namespace httpd {
18
19 namespace mime_types {
20
21 /**
22 * Convert a file extension into a MIME type.
23 *
24 * @param extension the file extension
25 * @return the mime type as a string
26 */
27 const char* extension_to_type(const sstring& extension);
28
29 } // namespace mime_types
30
31 } // namespace httpd
32
33 }