Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/pdfjs/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 659 B image not shown  

Quelle  pdf_response_link.sjs   Sprache: unbekannt

 
Spracherkennung für: .sjs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

const DATA = {
  pdf: {
    mimetype: "application/pdf",
    content:
      "%PDF-1.\ntrailer<</Root<</Pages<</Kids[<</MediaBox[0 0 3 3]>>]>>>>>>",
  },
  text: {
    mimetype: "text/plain",
    content: "hello world",
  },
};

function handleRequest(request, response) {
  response.setHeader("Cache-Control", "no-cache", false);
  response.setHeader(
    "Link",
    "<data:text/css,body{background:red%20!important;}>; rel=stylesheet",
    false
  );
  response.setStatusLine(request.httpVersion, "200", "Found");
  const { mimetype, content } = DATA[request.queryString];
  response.setHeader("Content-Type", mimetype, false);
  response.write(content);
}

[Dauer der Verarbeitung: 0.28 Sekunden]