WSGIHEADERS ランキングとまとめ
- ライセンス:
- MIT/X Consortium Lic...
- 出版社のWebサイト:
- http://www.bitbucket.org/aodag/
WSGIHEADERS タグ
WSGIHEADERS 説明
応答ヘッダーを追加して置き換えます WSGIHeadersは、応答ヘッダーを追加して置き換えるためのPythonモジュールです。 >>> @ReplaceHeader()])]))])])... def app(environ、start_response):... start_response( '200 OK'、... )... Return >>>インポートWebTest >>> app = webtest.testapp( App)>>> res = app.get( '/ a.txt')>>> res.content_type 'テキスト/普通' >>> res = app.get( '/ a.html')>>> res。 content_type 'text / html' >>>>> def xrds(environ):... return + '://' + environ + ' /svc.xrds ')] ... >>> @addheader()... DEF APP(Environ、Start_Response):... start_response(' 200 OK '、... )... Return >>> app = webtest.testapp(アプリ)>>> res = app .get( '/')>>> res.headers 'http://localhost/svc.xrdsの要件: ・Python
WSGIHEADERS 関連ソフトウェア