| 154 | //============================================================================== |
| 155 | |
| 156 | optional<string> Request::header(const string& name) const { |
| 157 | for (auto it = mHeaders.begin(); it != mHeaders.end(); ++it) { |
| 158 | if (iequals(it->first, name)) { |
| 159 | return it->second; |
| 160 | } |
| 161 | } |
| 162 | return nullopt; |
| 163 | } |
| 164 | |
| 165 | optional<string> Request::query(const string& param) const { |
| 166 | auto it = mQuery.find(param); |