Lines Matching defs:const

3 const statusCodeCacheableByDefault = new Set([
19 const understoodStatuses = new Set([
36 const errorStatusCodes = new Set([
43 const hopByHopHeaders = {
55 const excludedFromRevalidationUpdate = {
64 const n = parseInt(s, 10);
78 const cc = {};
83 const parts = header.trim().split(/,/);
84 for (const part of parts) {
85 const [k, v] = part.split(/=/, 2);
94 for (const k in cc) {
95 const v = cc[k];
232 const requestCC = parseCacheControl(req.headers['cache-control']);
251 const allowsStale =
297 const fields = this._resHeaders.vary
301 for (const name of fields) {
308 const headers = {};
309 for (const name in inHeaders) {
315 const tokens = inHeaders.connection.trim().split(/\s*,\s*/);
316 for (const name of tokens) {
321 const warnings = headers.warning.split(/,/).filter(warning => {
334 const headers = this._copyWithoutHopByHopHeaders(this._resHeaders);
335 const age = this.age();
358 const serverDate = Date.parse(this._resHeaders.date);
374 const residentTime = (this.now() - this._responseTime) / 1000;
424 const defaultMinTtl = this._rescc.immutable ? this._immutableMinTtl : 0;
426 const serverDate = this.date();
428 const expires = Date.parse(this._resHeaders.expires);
437 const lastModified = Date.parse(this._resHeaders['last-modified']);
450 const age = this.maxAge() - this.age();
451 const staleIfErrorAge = age + toNumberOrZero(this._rescc['stale-if-error']);
452 const staleWhileRevalidateAge = age + toNumberOrZero(this._rescc['stale-while-revalidate']);
520 const headers = this._copyWithoutHopByHopHeaders(incomingReq.headers);
541 const forbidsWeakValidators =
553 const etags = headers['if-none-match']
651 const headers = {};
652 for (const k in this._resHeaders) {
659 const newResponse = Object.assign({}, response, {