14 #ifndef __SANDESH_HTTP_H__
15 #define __SANDESH_HTTP_H__
43 const unsigned char *
str_;
48 map_type::iterator it =
GetMap()->find(s);
49 if (it ==
GetMap()->end()) {
57 GetMap()->insert(std::make_pair(s, h_info));
61 typedef std::map<std::string, HtmlInfo>
map_type;
77 #endif // __SANDESH_HTTP_H__
unsigned int html_len() const
SandeshHttp(std::string const &s, HtmlInfo h_info)
const unsigned char * html_str() const
const unsigned char * str_
static map_type * GetMap()
std::map< std::string, HtmlInfo > map_type
static std::string index_str_
static HtmlInfo GetHtmlInfo(std::string const &s)
static HtmlInfo * index_hti_
static HttpServer * hServ_
boost::function< int32_t(SandeshRequest *)> RequestCallbackFn
HtmlInfo(const unsigned char *html_str, unsigned int html_len)
static bool Init(EventManager *evm, const std::string module, short port, RequestCallbackFn reqcb, int *hport, const SandeshConfig &config=SandeshConfig())
static void Response(Sandesh *snh, std::string context)
static void UpdateDscp(uint8_t dscp)