Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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#include <seastar/util/modules.hh>
15
16namespace seastar {
17
18namespace http {
19
20namespace mime_types {
21
28SEASTAR_MODULE_EXPORT
29const char* extension_to_type(const sstring& extension);
30
31} // namespace mime_types
32
33} // namespace httpd
34
35namespace httpd {
36namespace mime_types {
37[[deprecated("Use http::mime_types::extension_to_type instead")]]
38inline const char* extension_to_type(const sstring& extension) {
39 return http::mime_types::extension_to_type(extension);
40}
41}
42}
43
44}
Seastar API namespace.
Definition: abort_on_ebadf.hh:26