per page, with , order by , clip by
Results of 1 - 6 of about 6 for httpd (0.006 sec.)
wsgiref --- WSGI ユーティリティとリファレンス実装 12539
wsgiref --- WSGI ユーティリティとリファレンス実装 ソースコード: Lib/wsgiref 警告 wsgiref はリファレンス実装であり、本番環境での使用は推奨されません。 このモジュールは基本的なセキュリティ検査だけを実装しています。 Web Server Gateway Interfac ... e )) . encode ( "utf-8" ) for key , value in environ . items ()] return ret with make_server ( '' , 8000 , simple_app ) as httpd : print ( "Serving on port 8000..." ) httpd . serve_forever () 上記の環境用の関数に加え、 wsgiref.util モジュールは以下のユ ... ばいけません。 使用例: from wsgiref.simple_server import make_server , demo_app with make_server ( '' , 8000 , demo_app ) as httpd : print ( "Serving HTTP on port 8000..." ) # プロセスが終了させられるまでリクエストに応答する。 httpd . serve_forever () # ... 別の方法: リクエストを 1 件処理して終了する。 httpd . handle_request () wsgiref.simple_server. demo_app ( environ , start_response ) この関数は、小さいながら完全な WSGI アプリ ...
https://man.mtool.work/python/3.14/library/wsgiref.html
signal --- 非同期イベントにハンドラーを設定する 10163
signal --- 非同期イベントにハンドラーを設定する ソースコード: Lib/signal.py このモジュールでは Python でシグナルハンドラを使うための機構を提供します。 一般的なルール signal.signal() 関数で、シグナルを受信したときに実行するハンドラーを定義で ... h signal' , signum ) interrupt_write . send ( b ' \0 ' ) signal . signal ( signal . SIGINT , handler ) def serve_forever ( httpd ): sel = DefaultSelector () sel . register ( interrupt_read , EVENT_READ ) sel . register ( httpd , EVENT_READ ) while Tru ... or key , _ in sel . select (): if key . fileobj == interrupt_read : interrupt_read . recv ( 1 ) return if key . fileobj == httpd : httpd . handle_request () print ( "Serving on port 8000" ) httpd = HTTPServer (( '' , 8000 ), SimpleHTTPRequestHandler ) ... serve_forever ( httpd ) print ( "Shutdown..." ) 他のマニュアルの関連ページ Linux JM pthread_sigmask(3) Linux JM signal(7) Linux JM sigmask(3) Li ...
https://man.mtool.work/python/3.14/library/signal.html
http.server --- HTTP サーバー 9359
http.server --- HTTP サーバー ソースコード: Lib/http/server.py このモジュールは HTTP サーバを実装するためのクラスを提供しています。 警告 http.server は本番環境での利用には推奨しません。 基本的なセキュリティチェック だけを実装しています。 利 ... うになります: def run ( server_class = HTTPServer , handler_class = BaseHTTPRequestHandler ): server_address = ( '' , 8000 ) httpd = server_class ( server_address , handler_class ) httpd . serve_forever () class http.server. HTTPServer ( server_address ... PORT = 8000 Handler = http . server . SimpleHTTPRequestHandler with socketserver . TCPServer (( "" , PORT ), Handler ) as httpd : print ( "serving at port" , PORT ) httpd . serve_forever () SimpleHTTPRequestHandler のサブクラスを作って、動作を拡張する ...
https://man.mtool.work/python/3.14/library/http.server.html
mimetypes --- ファイル名を MIME タイプへマップする 7768
mimetypes --- ファイル名を MIME タイプへマップする ソースコード: Lib/mimetypes.py mimetypes モジュールは、ファイル名または URL と、ファイル拡張子に対応する MIME 型との間の変換を行います。 ファイル名から MIME 型への変換と、MIME 型からファイル ... 辞書。 モジュールの使用例: >>> import mimetypes >>> mimetypes . init () >>> mimetypes . knownfiles ['/etc/mime.types', '/etc/httpd/mime.types', ... ] >>> mimetypes . suffix_map [ '.tgz' ] '.tar.gz' >>> mimetypes . encodings_map [ '.gz' ] 'gzip' >>> mime ...
https://man.mtool.work/python/3.14/library/mimetypes.html
What's New in Python 2.5 7567
What's New in Python 2.5 著者 : A.M. Kuchling この記事では Python 2.5 の新機能を説明します。 Python 2.5 の最終リリースは 2006 年 8 月に予定されており、 PEP 356 にリリース計画が記載されています。 Python 2.5 は 2006 年 9 月 19 日にリリースされ ... です。サーバをセットアップするには僅か数行で済みます: from wsgiref import simple_server wsgi_app = ... host = '' port = 8000 httpd = simple_server . make_server ( host , port , wsgi_app ) httpd . serve_forever () 参考 https://web.archive.org/web/2016033 ...
https://man.mtool.work/python/3.14/whatsnew/2.5.html
What's new in Python 3.14 7384
What's new in Python 3.14 エディタ : Adam Turner と Hugo van Kemenade この記事では Python 3.13 と比較した Python 3.14 の新機能を解説します。Python 3.14 は2025年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP ... -binary ( .glb ) を追加 glTF JSON/ASCII model/gltf+json ( .gltf ) を追加 M4V video/x-m4v ( .m4v ) を追加 PHP application/x-httpd-php ( .php ) を追加 RAR application/vnd.rar ( .rar ) を追加 RPM application/x-rpm ( .rpm ) を追加 STL model/stl ( .stl ) を ...
https://man.mtool.work/python/3.14/whatsnew/3.14.html
PREV 1 NEXT