Lines Matching refs:kv
152 static const keyvalue * keyvalue_from_key (const keyvalue *kv, const int k) in keyvalue_from_key() argument
155 while (kv->key != k && kv->key != -1) ++kv; in keyvalue_from_key()
156 return kv; in keyvalue_from_key()
162 static int keyvalue_get_key(const keyvalue *kv, const char * const s, const unsigned int slen)
165 while (kv->vlen && (kv->vlen != slen || 0 != memcmp(kv->value, s, slen)))
166 ++kv;
167 return kv->key;
191 const buffer *kv = http_methods+1; /*(step over http_methods[0] ("GET"))*/ in get_http_method_key() local
192 while (kv->used && (kv->used-1 != slen || 0 != memcmp(kv->ptr, s, slen))) in get_http_method_key()
193 ++kv; in get_http_method_key()
194 const uint_fast32_t i = kv - http_methods; in get_http_method_key()
210 const keyvalue * const kv = keyvalue_from_key(http_status, status); in http_status_append() local
211 if (__builtin_expect( (0 != kv->vlen), 1)) in http_status_append()
212 buffer_append_string_len(b, kv->value, kv->vlen); in http_status_append()
220 const keyvalue * const kv = keyvalue_from_key(http_versions, version); in http_version_append() local
221 if (__builtin_expect( (0 != kv->vlen), 1)) in http_version_append()
222 buffer_append_string_len(b, kv->value, kv->vlen); in http_version_append()