| 160 | } |
| 161 | |
| 162 | void Server::GenerateOptionsList(std::vector<const char*>* options) { |
| 163 | std::map<std::string, std::string>::const_iterator it = this->options_.begin(); |
| 164 | for (; it != this->options_.end(); ++it) { |
| 165 | options->push_back(it->first.c_str()); |
| 166 | options->push_back(it->second.c_str()); |
| 167 | } |
| 168 | options->push_back(NULL); |
| 169 | } |
| 170 | |
| 171 | int Server::OnNewHttpRequest(struct mg_connection* conn) { |
| 172 | mg_context* context = mg_get_context(conn); |