• Home
  • Raw
  • Download

Lines Matching refs:httpRequest

1260   let httpRequest = null
1281 httpRequest = request
1286 httpRequest = makeRequest(request)
1292 httpFetchParams.request = httpRequest
1303 const contentLength = httpRequest.body ? httpRequest.body.length : null
1311 httpRequest.body == null &&
1312 ['POST', 'PUT'].includes(httpRequest.method)
1327 httpRequest.headersList.append('content-length', contentLengthHeaderValue)
1335 if (contentLength != null && httpRequest.keepalive) {
1342 if (httpRequest.referrer instanceof URL) {
1343 httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href))
1347 appendRequestOriginHeader(httpRequest)
1350 appendFetchMetadata(httpRequest)
1355 if (!httpRequest.headersList.contains('user-agent')) {
1356httpRequest.headersList.append('user-agent', typeof esbuildDetection === 'undefined' ? 'undici' : …
1364 httpRequest.cache === 'default' &&
1365 (httpRequest.headersList.contains('if-modified-since') ||
1366 httpRequest.headersList.contains('if-none-match') ||
1367 httpRequest.headersList.contains('if-unmodified-since') ||
1368 httpRequest.headersList.contains('if-match') ||
1369 httpRequest.headersList.contains('if-range'))
1371 httpRequest.cache = 'no-store'
1379 httpRequest.cache === 'no-cache' &&
1380 !httpRequest.preventNoCacheCacheControlHeaderModification &&
1381 !httpRequest.headersList.contains('cache-control')
1383 httpRequest.headersList.append('cache-control', 'max-age=0')
1387 if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {
1390 if (!httpRequest.headersList.contains('pragma')) {
1391 httpRequest.headersList.append('pragma', 'no-cache')
1396 if (!httpRequest.headersList.contains('cache-control')) {
1397 httpRequest.headersList.append('cache-control', 'no-cache')
1403 if (httpRequest.headersList.contains('range')) {
1404 httpRequest.headersList.append('accept-encoding', 'identity')
1410 if (!httpRequest.headersList.contains('accept-encoding')) {
1411 if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {
1412 httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate')
1414 httpRequest.headersList.append('accept-encoding', 'gzip, deflate')
1418 httpRequest.headersList.delete('host')
1439 httpRequest.cache = 'no-store'
1444 if (httpRequest.mode !== 'no-store' && httpRequest.mode !== 'reload') {
1455 if (httpRequest.mode === 'only-if-cached') {
1472 !safeMethodsSet.has(httpRequest.method) &&
1497 response.urlList = [...httpRequest.urlList]
1501 if (httpRequest.headersList.contains('range')) {