| 200 | } |
| 201 | |
| 202 | bool |
| 203 | FetchSM::check_for_field_value(const char *name, size_t name_len, char const *value, size_t value_len) |
| 204 | { |
| 205 | bool zret = false; // not found. |
| 206 | StrList slist; |
| 207 | HTTPHdr *hdr = &client_response_hdr; |
| 208 | int ret = hdr->value_get_comma_list(name, name_len, &slist); |
| 209 | |
| 210 | ink_release_assert(header_done); |
| 211 | |
| 212 | if (ret) { |
| 213 | for (Str *f = slist.head; f != nullptr; f = f->next) { |
| 214 | if (f->len == value_len && 0 == strncasecmp(f->str, value, value_len)) { |
| 215 | Dbg(dbg_ctl, "[%s] field '%.*s', value '%.*s'", __FUNCTION__, static_cast<int>(name_len), name, static_cast<int>(value_len), |
| 216 | value); |
| 217 | zret = true; |
| 218 | break; |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | return zret; |
| 223 | } |
| 224 | |
| 225 | bool |
| 226 | FetchSM::check_chunked() |
no test coverage detected