| 123 | } |
| 124 | |
| 125 | static bool requestHasHeader(const SC::HttpClientRequest& request, SC::StringSpan name) |
| 126 | { |
| 127 | for (size_t idx = 0; idx < request.headers.sizeInElements(); ++idx) |
| 128 | { |
| 129 | if (asciiEqualsIgnoreCase(request.headers[idx].name, name)) |
| 130 | { |
| 131 | return true; |
| 132 | } |
| 133 | } |
| 134 | return false; |
| 135 | } |
| 136 | |
| 137 | static bool isValidRequestMethod(SC::HttpClientRequest::Method method) |
| 138 | { |
no test coverage detected