| 99 | } |
| 100 | |
| 101 | bool SC::HttpFormUrlEncodedIterator::getValue(StringSpan body, StringSpan name, StringSpan& value) |
| 102 | { |
| 103 | value = {}; |
| 104 | |
| 105 | HttpFormUrlEncodedIterator it(body); |
| 106 | HttpURLQueryItem item; |
| 107 | while (it.next(item)) |
| 108 | { |
| 109 | if (item.name == name) |
| 110 | { |
| 111 | value = item.value; |
| 112 | return true; |
| 113 | } |
| 114 | } |
| 115 | return false; |
| 116 | } |
| 117 | |
| 118 | static int scHttpHexValue(char value) |
| 119 | { |