Debian Codegraph @

src/davix_internal.hpp

raw
1 /*
2 * This File is part of Davix, The IO library for HTTP based protocols
3 * Copyright (C) CERN 2013
4 * Author: Adrien Devresse <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21
22 #ifndef DAVIX_INTERNAL_HPP
23 #define DAVIX_INTERNAL_HPP
24
25
26 // configuration
27 #include <davix_internal_config.hpp>
28
29 #include <davix.hpp>
30
31 // C++ includes
32 #include <sstream>
33 #include <ostream>
34 #include <iostream>
35 #include <memory>
36 #include <string>
37 #include <cctype>
38 #include <vector>
39 #include <queue>
40 #include <deque>
41 #include <map>
42 #include <iterator>
43 #include <functional>
44 #include <algorithm>
45 #include <limits>
46 #include <utility>
47
48 // C includes
49 #include <cstddef>
50 #include <cstring>
51 #include <cstddef>
52 #include <ctime>
53 #include <cmath>
54 #include <cstdlib>
55
56 // Posix includes
57 #include <fcntl.h>
58
59 #include "libs/alibxx/alibxx.hpp"
60
61 namespace Davix{
62
63 // http request internals
64 void httpcodeToDavixException(int code, const std::string & scope, const std::string & end_message = std::string());
65 bool httpcodeIsValid(int code);
66 void httpcodeToDavixError(int code, const std::string & scope, const std::string & end_message, DavixError** err);
67 }
68
69
70 #endif // DAVIX_INTERNAL_HPP