| 131 | } |
| 132 | |
| 133 | bool |
| 134 | HttpHeader::hasKey(char const *const key, int const keylen) const |
| 135 | { |
| 136 | if (!isValid()) { |
| 137 | return false; |
| 138 | } |
| 139 | |
| 140 | TSMLoc const locfield(TSMimeHdrFieldFind(m_buffer, m_lochdr, key, keylen)); |
| 141 | if (nullptr != locfield) { |
| 142 | TSHandleMLocRelease(m_buffer, m_lochdr, locfield); |
| 143 | return true; |
| 144 | } |
| 145 | |
| 146 | return false; |
| 147 | } |
| 148 | |
| 149 | bool |
| 150 | HttpHeader::removeKey(char const *const keystr, int const keylen) |
no test coverage detected