comparison Core/Lua/LuaFunctionCall.cpp @ 1959:45c4387a379c

Access to the HTTP headers in the "IncomingHttpRequestFilter()" callback
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Apr 2016 16:26:22 +0200
parents b1291df2f780
children 3eefb84ac0bd
comparison
equal deleted inserted replaced
1958:c746e2d42ac8 1959:45c4387a379c
150 else 150 else
151 { 151 {
152 throw OrthancException(ErrorCode_LuaReturnsNoString); 152 throw OrthancException(ErrorCode_LuaReturnsNoString);
153 } 153 }
154 } 154 }
155
156
157 void LuaFunctionCall::PushStringMap(const std::map<std::string, std::string>& value)
158 {
159 Json::Value json = Json::objectValue;
160
161 for (std::map<std::string, std::string>::const_iterator
162 it = value.begin(); it != value.end(); ++it)
163 {
164 json[it->first] = it->second;
165 }
166
167 PushJson(json);
168 }
155 } 169 }