OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bfd_rest_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Codilime.
3  */
4 
5 #ifndef SRC_BFD_REST_COMMON_
6 #define SRC_BFD_REST_COMMON_
7 
8 #include <string>
9 
10 class HttpSession;
11 
12 namespace BFD {
13 namespace REST {
14 
15 void SendResponse(HttpSession *session, const std::string &msg,
16  int status_code = 200);
17 void SendErrorResponse(HttpSession *session, const std::string &error_msg,
18  int status_code = 500);
19 
20 } // namespace REST
21 } // namespace BFD
22 
23 #endif // SRC_BFD_REST_COMMON_
void SendResponse(HttpSession *session, const std::string &msg, int status_code)
void SendErrorResponse(HttpSession *session, const std::string &error_msg, int status_code)