WSgiHeaders. Ranking & Zusammenfassung
- Lizenz:
- MIT/X Consortium Lic...
- Name des Herausgebers:
- Atsushi Odagiri
- Website des Verlags:
- http://www.bitbucket.org/aodag/
WSgiHeaders. Stichworte
WSgiHeaders. Beschreibung
Hinzufügen und Ersetzen von Antwortheadern WSgiHeaders ist ein Python-Modul zum Hinzufügen und Ersetzen von Antwortheadern. >>> @relaceHeader (])] ... def App (Umwelt, Start_Response): ... start_response ( '200 OK', ... App) >>> res = app.get ('/ a.txt') >>> res.content_type 'Text / Plain' >>> res = app.get ('/ a.html') >>> res. content_type 'text / html' >>> def XRDs (Umwelt): ... RETURN + ': //' + Umgebungen + ' /svc.xrds ')] ... >>> @addheader () ... def App (Umwelt, start_response): ... start_response ('200 ok ', ... ) .Get ('/') >>> resheures 'http: //localhost/svc.xrds' Anforderungen: · Python
WSgiHeaders. Zugehörige Software