summaryrefslogtreecommitdiff
path: root/icespider/fcgi
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-05 01:35:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-17 15:36:04 +0000
commit5e77f3594f3abaf27c10a5b114b6dca2dc2bd3bd (patch)
tree63ef4d1bd53d8d2d6d73efe0bfde14031ba05c7f /icespider/fcgi
parentAdd missing optional includes (diff)
downloadicespider-5e77f3594f3abaf27c10a5b114b6dca2dc2bd3bd.tar.bz2
icespider-5e77f3594f3abaf27c10a5b114b6dca2dc2bd3bd.tar.xz
icespider-5e77f3594f3abaf27c10a5b114b6dca2dc2bd3bd.zip
Introduce lightweight flatmap
Diffstat (limited to 'icespider/fcgi')
-rw-r--r--icespider/fcgi/cgiRequestBase.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/icespider/fcgi/cgiRequestBase.h b/icespider/fcgi/cgiRequestBase.h
index 6a63a88..0c2b3a1 100644
--- a/icespider/fcgi/cgiRequestBase.h
+++ b/icespider/fcgi/cgiRequestBase.h
@@ -3,8 +3,8 @@
#include <case_less.h>
#include <core.h>
+#include <flatMap.h>
#include <ihttpRequest.h>
-#include <map>
#include <string_view>
namespace IceSpider {
@@ -15,8 +15,8 @@ namespace IceSpider {
void initialize();
public:
- using VarMap = std::map<std::string_view, const std::string_view>;
- using HdrMap = std::map<std::string_view, const std::string_view, AdHoc::case_less>;
+ using VarMap = flatmap<std::string_view, const std::string_view>;
+ using HdrMap = flatmap<std::string_view, const std::string_view, AdHoc::case_less>;
[[nodiscard]] const PathElements & getRequestPath() const override;
[[nodiscard]] PathElements & getRequestPath() override;
@@ -35,10 +35,10 @@ namespace IceSpider {
private:
template<typename MapType> static OptionalString optionalLookup(const std::string_view & key, const MapType &);
- VarMap envmap;
+ VarMap envmap {40};
StringMap qsmap;
StringMap cookiemap;
- HdrMap hdrmap;
+ HdrMap hdrmap {15};
PathElements pathElements;
};
}