[![Build Status](https://travis-ci.org/cmouse/yahttp.svg?branch=master)](https://travis-ci.org/cmouse/yahttp)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/2161/badge.svg)](https://scan.coverity.com/projects/2161)
-[![Coverage Status](https://coveralls.io/repos/cmouse/yahttp/badge.svg?branch=master%0A)](https://coveralls.io/r/cmouse/yahttp?branch=master%0A)
+[![Coverage Status](https://coveralls.io/repos/github/cmouse/yahttp/badge.svg)](https://coveralls.io/github/cmouse/yahttp)
WARNINGS
--------
-#ifndef _YAHTTP_EXCEPTION_HPP
-#define _YAHTTP_EXCEPTION_HPP 1
-
+#pragma once
#include <exception>
namespace YaHTTP {
ParseError(const std::string& reason_): Error(reason_) {};
};
};
-
-#endif
os << "; ";
os << Utility::encodeURL(i->second.name) << "=" << Utility::encodeURL(i->second.value);
}
- } else if (kind == YAHTTP_TYPE_REQUEST) {
+ } else if (kind == YAHTTP_TYPE_RESPONSE) {
for(strcookie_map_t::const_iterator i = jar.cookies.begin(); i != jar.cookies.end(); i++) {
os << "Set-Cookie: ";
os << i->second.str() << "\r\n";
-#ifndef _YAHTTP_ROUTER_HPP
-#define _YAHTTP_ROUTER_HPP 1
+#pragma once
/* @file
* @brief Defines router class and support structures
*/
};
};
#endif
-
-#endif
-#ifndef _YAHTTP_URL_HPP
-#define _YAHTTP_URL_HPP 1
+#pragma once
#include <sstream>
#include <string>
};
};
};
-#endif
-#ifndef _YAHTTP_UTILITY_HPP
-#define _YAHTTP_UTILITY_HPP 1
-
+#pragma once
namespace YaHTTP {
static const char *MONTHS[] = {0,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",0}; //<! List of months
static const char *DAYS[] = {"Sun","Mon","Tue","Wed","Thu","Fri","Sat",0}; //<! List of days
}; //<! camelizes headers, such as, content-type => Content-Type
};
};
-#endif