PageSourceSearch

https://httparchive.org/_astro/_report_id_.astro_astro_type_script_index_4_lang.B7SauZLV.js

js httparchive.org collected 2026-10-01 06:55:03 UTC 1,707 bytes, 1 lines download raw bytes

1import{t as e}from"./constants.C1noILWJ.js";addEventListener(`DOMContentLoaded`,async()=>{let t=document.getElementById(`report-data-container`);if(!t)return;let n=JSON.parse(t.dataset.report),r=t.dataset.url,i=new URLSearchParams(location.search),a=i.get(`start`),o=i.get(`end`),s=location.hostname.split(`.`)[0],c=i.get(`lens`)||s;if(c){let e=document.getElementById(`lens`);if(e){let t=e.querySelector(`option[value="${c}"]`);t&&(t.selected=!0)}}let l=[];try{let t=await fetch(`${e.apiBase}/dates`);t.ok?l=(await t.json()).dates||[]:console.warn(`Failed to fetch dates: ${t.status}`)}catch(e){console.error(`Failed to fetch dates`,e),l=[]}let u=[...l];if(n.minDate&&u.includes(n.minDate)&&(u=u.slice(0,u.indexOf(n.minDate)+1)),n.maxDate&&u.includes(n.maxDate)&&(u=u.slice(u.indexOf(n.maxDate))),n.datePattern){let e=new RegExp(n.datePattern);u=u.filter(t=>e.test(t))}let d=e=>e===`latest`?u[0]:e===`earliest`?u[u.length-1]:e,f=d(a),p=d(o);p&&!f&&([f,p]=[p,null]),f===p&&(p=null),!f&&!p&&(f=u[Math.min(72,u.length-1)],p=u[0]);let m=f&&!p?`histogram`:`timeseries`,h=document.getElementById(`startDate`),g=document.getElementById(`endDate`);h&&g&&u.forEach(e=>{let t=document.createElement(`option`);t.value=e,t.textContent=e,t.className=`yyyy_mm_dd`,e===f&&(t.selected=!0),h.appendChild(t);let n=document.createElement(`option`);n.value=e,n.textContent=e,n.className=`yyyy_mm_dd`,e===p&&(n.selected=!0),g.appendChild(n)});let _={...n,dates:u,url:r,startDate:f,endDate:p};_.metrics=_.metrics.map(e=>{if(!e)return e;let t=e[m]||{},n=t.enabled!==!1;return{...e,[m]:{...t,enabled:n}}}),new Report(_,m),_.metrics.forEach(e=>{!e||!e[m]?.enabled||(m===`timeseries`?timeseries(e.id,e,f,p):histogram(e.id,f,e))})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.