Lines Matching refs:etag
18 http_etag_matches (const buffer * const etag, const char *s, const int weak_ok) in http_etag_matches() argument
21 if (buffer_is_blank(etag)) return 0; in http_etag_matches()
23 uint32_t etag_sz = buffer_clen(etag); in http_etag_matches()
24 const char *etag_ptr = etag->ptr; in http_etag_matches()
47 http_etag_remix (buffer * const etag, const char * const str, const uint32_t len) in http_etag_remix() argument
51 uint32_t elen = buffer_clen(etag); in http_etag_remix()
53 h = dekhash(etag->ptr+1, elen-2, h); in http_etag_remix()
54 buffer_truncate(etag, 1); in http_etag_remix()
57 buffer_clear(etag); in http_etag_remix()
58 buffer_append_char(etag, '"'); in http_etag_remix()
62 buffer_append_char(etag, '"'); in http_etag_remix()
64 buffer_append_int(etag, h); in http_etag_remix()
65 buffer_append_char(etag, '"'); in http_etag_remix()
69 http_etag_create (buffer * const etag, const struct stat * const st, const int flags) in http_etag_create() argument
93 buffer_clear(etag); in http_etag_create()
94 http_etag_remix(etag, (char *)x, len << 3); in http_etag_create()