Home
last modified time | relevance | path

Searched refs:etag (Results 1 – 16 of 16) sorted by relevance

/lighttpd1.4/src/
H A Dhttp_etag.c21 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()
51 uint32_t elen = buffer_clen(etag); 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()
[all …]
H A Dmod_magnet_cache.c26 free(sc->etag.ptr); in script_free()
53 buffer_clear(&sc->etag); in script_cache_load_script()
59 const buffer * const etag = stat_cache_etag_get(sce, etag_flags); in script_cache_load_script() local
60 if (etag) in script_cache_load_script()
61 buffer_copy_buffer(&sc->etag, etag); in script_cache_load_script()
134 const buffer * const etag = stat_cache_etag_get(sce, etag_flags); in script_cache_check_script() local
135 if (NULL == etag || !buffer_is_equal(&sc->etag, etag)) { in script_cache_check_script()
H A Dhttp_etag.h22 int http_etag_matches (const buffer *etag, const char *matches, int weak_ok);
24 void http_etag_create (buffer *etag, const struct stat *st, int flags);
H A Dmod_magnet_cache.h12 buffer etag; member
H A Dstat_cache.c824 free(sce->etag.ptr); in stat_cache_entry_free()
1070 if (!buffer_is_blank(&sce->etag)) return &sce->etag; in stat_cache_etag_get()
1074 http_etag_create(&sce->etag, &sce->st, flags); in stat_cache_etag_get()
1075 return &sce->etag; in stat_cache_etag_get()
1111 buffer_clear(&sce->etag); in stat_cache_update_entry()
1113 buffer_copy_string_len(&sce->etag, BUF_PTR_LEN(etagb)); in stat_cache_update_entry()
1355 buffer_clear(&sce->etag); in stat_cache_get_entry()
1400 buffer_clear(&sce->etag); in stat_cache_get_entry_open()
H A Dhttp-header-glue.c195 const buffer *vb, *etag; in http_response_handle_cachable() local
209 && (etag = http_header_response_get(r, HTTP_HEADER_ETAG, in http_response_handle_cachable()
213 if (http_etag_matches(etag, vb->ptr, !range_request)) { in http_response_handle_cachable()
385 const buffer *etag = in http_response_send_file() local
387 if (etag && !buffer_is_blank(etag)) { in http_response_send_file()
390 BUF_PTR_LEN(etag)); in http_response_send_file()
H A Dstat_cache.h22 buffer etag; member
H A Dmod_dirlisting.c1514 const buffer *etag = stat_cache_etag_get(sce, r->conf.etag_flags); in mod_dirlisting_cache_check() local
1515 if (etag && !buffer_is_blank(etag)) in mod_dirlisting_cache_check()
1518 BUF_PTR_LEN(etag)); in mod_dirlisting_cache_check()
H A Dmod_deflate.c317 …deflate_cache_file_name(request_st * const r, const buffer *cache_dir, const buffer * const etag) { in mod_deflate_cache_file_name() argument
324 force_assert(buffer_clen(etag) >= 2); in mod_deflate_cache_file_name()
330 etag->ptr+1, buffer_clen(etag)-2); in mod_deflate_cache_file_name()
H A Dmod_magnet.c509 const buffer *etag = stat_cache_etag_get(sce, r->conf.etag_flags); in magnet_stat_field() local
510 if (etag && !buffer_is_blank(etag)) in magnet_stat_field()
511 lua_pushlstring(L, BUF_PTR_LEN(etag)); in magnet_stat_field()
H A Dmod_webdav.c4065 char *etag = p+1; in webdav_has_lock() local
4068 if (p == etag) continue; /* ignore entity-tag if empty */ in webdav_has_lock()
4081 int ematch = http_etag_matches(etagb, etag, 0); in webdav_has_lock()
/lighttpd1.4/src/t/
H A Dtest_mod_staticfile.c143 buffer *etag = buffer_init(); in test_http_response_send_file() local
152 buffer_copy_buffer(etag, vb); in test_http_response_send_file()
157 CONST_BUF_LEN(etag)); in test_http_response_send_file()
237 etag->ptr, buffer_clen(etag)-1); in test_http_response_send_file()
244 etag->ptr+1, buffer_clen(etag)-2); in test_http_response_send_file()
268 buffer_append_buffer(rqst_etag, etag); in test_http_response_send_file()
288 buffer_append_buffer(rqst_etag, etag); in test_http_response_send_file()
294 buffer_append_buffer(rqst_etag, etag); in test_http_response_send_file()
300 buffer_append_buffer(rqst_etag, etag); in test_http_response_send_file()
306 buffer_append_buffer(rqst_etag, etag); in test_http_response_send_file()
[all …]
/lighttpd1.4/doc/outdated/
H A Dperformance.txt147 (etag.use-inode, etag.use-mtime, etag.use-size)
H A Dcompress.txt44 and the etag associated to the file.
/lighttpd1.4/tests/
H A DLightyTest.pm359 $t->{etag} = $resp_hdr{'etag'};
/lighttpd1.4/
H A DNEWS375 * [multiple] remove r->physical.etag
803 * [mod_magnet] inline name and etag buffers in cache
805 * [core] clear etag in stat_cache_get_entry_open()
1117 * [multiple] etag.[ch] -> http_etag.[ch]; better imp
1563 * [core] document algorithm used in lighttpd etag
1902 * [core] add const to some etag prototypes
1936 * [core] use high precision stat timestamp in etag
3112 * Fix etag formatting on boxes with 32-bit longs
3407 * generate etag/last-modified header for on-the-fly-compressed files (#1171)
3411 * fixed including of stdint.h/inttypes.h in etag.c (#1413)
[all …]