Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/testing/web-platform/tests/content-dpr/resources/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 911 B image not shown  

Quelle  dpr.py   Sprache: Python

 
from wptserve.utils import isomorphic_decode

def main(request, response):
    """
    Simple handler that sets a response header based on which client hint
    request headers were received.
    """

    response.headers.append(b"Access-Control-Allow-Origin", b"*")
    values = request.GET
    name = values.first(b'name')
    type = values.first(b'mimeType')
    dpr = values.first(b'dpr')
    double = None
    if b'double' in values:
        double = values.first(b'double')
    image_path = request.doc_root + u"/".join(request.url_parts[2].split(u"/")[:-1]) + u"/" + isomorphic_decode(name)
    f = open(image_path, "rb")
    buff = f.read()
    f.close()
    response.headers.set(b"Content-Type", type)
    response.headers.set(b"Content-DPR", dpr)
    if double:
        response.headers.append(b"Content-DPR", double)
    response.headers.set(b"Content-Length", len(buff))
    response.content = buff

Messung V0.5
C=93 H=97 G=94

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.