| 1672 | -------------------------------------------------------------------------*/ |
| 1673 | |
| 1674 | HTTPValTE * |
| 1675 | http_parse_te(const char *buf, int len, Arena *arena) |
| 1676 | { |
| 1677 | HTTPValTE *val; |
| 1678 | const char *s; |
| 1679 | |
| 1680 | http_skip_ws(buf, len); |
| 1681 | |
| 1682 | s = buf; |
| 1683 | |
| 1684 | while (len > 0 && *buf && (*buf != ';')) { |
| 1685 | buf += 1; |
| 1686 | len -= 1; |
| 1687 | } |
| 1688 | |
| 1689 | val = static_cast<HTTPValTE *>(arena->alloc(sizeof(HTTPValTE))); |
| 1690 | val->encoding = http_str_store(arena, s, static_cast<int>(buf - s)); |
| 1691 | val->qvalue = http_parse_qvalue(buf, len); |
| 1692 | |
| 1693 | return val; |
| 1694 | } |
| 1695 | |
| 1696 | void |
| 1697 | HTTPHdr::_fill_target_cache() const |
no test coverage detected