gunicorn の API リファレンス
gunicorn (benoitc/gunicorn) の公開 API 268 件 —— クラス 92、関数 50、メソッド 126。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: benoitc/gunicorn
| 種別 | 件数 |
|---|---|
| クラス | 92 |
| 関数 | 50 |
| メソッド | 126 |
API 一覧
func
gunicorn.app.pasterapp.serve(app, global_conf, **local_conf)A Paste Deployment server runner.
class
gunicorn.arbiter.ArbiterArbiter maintain the workers processes alive.
method
gunicorn.arbiter.Arbiter.halt(reason=None, exit_status=0)halt arbiter
method
gunicorn.arbiter.Arbiter.handle_hup()HUP handling.
method
gunicorn.arbiter.Arbiter.handle_int()SIGINT handling
method
gunicorn.arbiter.Arbiter.handle_quit()SIGQUIT handling
method
gunicorn.arbiter.Arbiter.handle_term()SIGTERM handling
method
gunicorn.arbiter.Arbiter.handle_ttin()SIGTTIN handling.
method
gunicorn.arbiter.Arbiter.handle_ttou()SIGTTOU handling.
method
gunicorn.arbiter.Arbiter.handle_usr1()SIGUSR1 handling.
method
gunicorn.arbiter.Arbiter.handle_usr2()SIGUSR2 handling.
method
gunicorn.arbiter.Arbiter.handle_winch()SIGWINCH handling
method
gunicorn.arbiter.Arbiter.init_signals()Initialize master signal handling.
method
gunicorn.arbiter.Arbiter.kill_dirty_arbiter(sig)Send a signal to the dirty arbiter.
method
gunicorn.arbiter.Arbiter.murder_workers()Kill unused/idle workers
method
gunicorn.arbiter.Arbiter.reap_workers()Reap workers to avoid zombie processes
method
gunicorn.arbiter.Arbiter.reexec()Relaunch the master and workers.
method
gunicorn.arbiter.Arbiter.run()Main master loop.
method
gunicorn.arbiter.Arbiter.spawn_dirty_arbiter()Spawn the dirty arbiter process.
method
gunicorn.arbiter.Arbiter.spawn_workers()Spawn new workers as needed.
method
gunicorn.arbiter.Arbiter.start()Initialize the arbiter.
method
gunicorn.arbiter.Arbiter.wait_for_signals(timeout=1.0)Wait for signals with timeout.
method
gunicorn.arbiter.Arbiter.wakeup()Wake up the arbiter's main loop.
class
gunicorn.asgi.lifespan.LifespanManagerManages ASGI lifespan events (startup/shutdown).
class
gunicorn.asgi.parser.CallbackRequestRequest object built from callback parser state.
class
gunicorn.asgi.parser.InvalidChunkExtensionInvalid chunk extension per RFC 9112.
class
gunicorn.asgi.parser.InvalidChunkSizeInvalid chunk size in chunked transfer encoding.
class
gunicorn.asgi.parser.InvalidHTTPVersionInvalid HTTP version.
class
gunicorn.asgi.parser.InvalidHeaderInvalid header value.
class
gunicorn.asgi.parser.InvalidHeaderNameInvalid header name.
class
gunicorn.asgi.parser.InvalidProxyHeaderInvalid PROXY protocol v2 header.
class
gunicorn.asgi.parser.InvalidProxyLineInvalid PROXY protocol v1 line.
class
gunicorn.asgi.parser.InvalidRequestLineInvalid request line.
class
gunicorn.asgi.parser.InvalidRequestMethodInvalid HTTP method.
class
gunicorn.asgi.parser.LimitRequestHeadersToo many headers or header field too large.
class
gunicorn.asgi.parser.LimitRequestLineRequest line exceeds configured limit.
class
gunicorn.asgi.parser.PPCommandPROXY protocol v2 commands.
class
gunicorn.asgi.parser.PPFamilyPROXY protocol v2 address families.
class
gunicorn.asgi.parser.PPProtocolPROXY protocol v2 transport protocols.
class
gunicorn.asgi.parser.ParseErrorBase error raised during HTTP parsing.
class
gunicorn.asgi.parser.PythonProtocolCallback-based HTTP/1.1 parser (pure Python fallback).
method
gunicorn.asgi.parser.PythonProtocol.reset()Reset for next request (keepalive).
class
gunicorn.asgi.parser.UnsupportedTransferCodingUnsupported Transfer-Encoding value.
class
gunicorn.asgi.protocol.ASGIProtocolHTTP/1.1 protocol handler for ASGI applications.
class
gunicorn.asgi.protocol.ASGIResponseInfoSimple container for ASGI response info for access logging.
class
gunicorn.asgi.protocol.BodyReceiverBody receiver for callback-based parsers.
class
gunicorn.asgi.protocol.FlowControlManage transport-level write flow control.
method
gunicorn.asgi.protocol.FlowControl.drain()Wait until transport is writable.
class
gunicorn.asgi.unreader.AsyncUnreaderAsync socket reader with pushback buffer support.
class
gunicorn.asgi.uwsgi.AsyncUWSGIRequestAsync version of UWSGIRequest.
method
gunicorn.asgi.uwsgi.AsyncUWSGIRequest.drain_body()Drain unread body data.
method
gunicorn.asgi.uwsgi.AsyncUWSGIRequest.read_body(size=8192)Read body chunk asynchronously.
class
gunicorn.asgi.websocket.WebSocketProtocolWebSocket connection handler for ASGI applications.
method
gunicorn.asgi.websocket.WebSocketProtocol.run()Run the WebSocket ASGI application.
func
gunicorn.config.validate_http_parser(val)Validate http_parser setting.
func
gunicorn.config.validate_http_protocols(val)Validate http_protocols setting.
func
gunicorn.config.validate_proxy_protocol(val)Validate proxy_protocol setting.
func
gunicorn.ctl.cli.format_all(data:dict) -> strFormat show all output for display.
func
gunicorn.ctl.cli.format_config(data:dict) -> strFormat config output for display.
func
gunicorn.ctl.cli.format_dirty(data:dict) -> strFormat dirty workers output for display.
func
gunicorn.ctl.cli.format_help(data:dict) -> strFormat help output for display.
func
gunicorn.ctl.cli.format_listeners(data:dict) -> strFormat listeners output for display.
func
gunicorn.ctl.cli.format_response(command:str, data:dict) -> strFormat response data based on command.
func
gunicorn.ctl.cli.format_stats(data:dict) -> strFormat stats output for display.
func
gunicorn.ctl.cli.format_workers(data:dict) -> strFormat workers output for display.
func
gunicorn.ctl.cli.main()Main entry point for gunicornc CLI.
func
gunicorn.ctl.cli.run_command(socket_path:str, command:str, json_output:bool=False) -> intExecute single command and exit.
func
gunicorn.ctl.cli.run_interactive(socket_path:str, json_output:bool=False) -> intRun interactive CLI with readline support.
class
gunicorn.ctl.client.ControlClientClient for connecting to gunicorn control socket.
method
gunicorn.ctl.client.ControlClient.close()Close connection.
method
gunicorn.ctl.client.ControlClient.connect()Connect to control socket.
method
gunicorn.ctl.client.ControlClient.send_command(command:str, args:list=None) -> dictSend command and wait for response.
class
gunicorn.ctl.client.ControlClientErrorControl client error.
func
gunicorn.ctl.client.parse_command(line:str) -> tupleParse a command line into command and args.
class
gunicorn.ctl.handlers.CommandHandlersCommand handlers with access to arbiter state.
method
gunicorn.ctl.handlers.CommandHandlers.dirty_add(count:int=1) -> dictSpawn additional dirty workers.
method
gunicorn.ctl.handlers.CommandHandlers.dirty_remove(count:int=1) -> dictRemove dirty workers.
method
gunicorn.ctl.handlers.CommandHandlers.help() -> dictReturn list of available commands.
method
gunicorn.ctl.handlers.CommandHandlers.reload() -> dictTrigger graceful reload (equivalent to SIGHUP).
method
gunicorn.ctl.handlers.CommandHandlers.reopen() -> dictReopen log files (equivalent to SIGUSR1).
method
gunicorn.ctl.handlers.CommandHandlers.show_config() -> dictReturn current effective configuration.
method
gunicorn.ctl.handlers.CommandHandlers.show_dirty() -> dictReturn dirty workers and apps information.
method
gunicorn.ctl.handlers.CommandHandlers.show_listeners() -> dictReturn bound socket information.
method
gunicorn.ctl.handlers.CommandHandlers.show_stats() -> dictReturn server statistics.
method
gunicorn.ctl.handlers.CommandHandlers.show_workers() -> dictReturn list of HTTP workers.
method
gunicorn.ctl.handlers.CommandHandlers.shutdown(mode:str='graceful') -> dictInitiate shutdown.
method
gunicorn.ctl.handlers.CommandHandlers.worker_add(count:int=1) -> dictIncrease worker count.
method
gunicorn.ctl.handlers.CommandHandlers.worker_kill(pid:int) -> dictGracefully terminate a specific worker.
method
gunicorn.ctl.handlers.CommandHandlers.worker_remove(count:int=1) -> dictDecrease worker count.
class
gunicorn.ctl.protocol.ControlProtocolProtocol implementation for control socket communication.
method
gunicorn.ctl.protocol.ControlProtocol.decode_message(data:bytes) -> dictDecode a message from bytes.
method
gunicorn.ctl.protocol.ControlProtocol.encode_message(data:dict) -> bytesEncode a message for transmission.
method
gunicorn.ctl.protocol.ControlProtocol.read_message(sock) -> dictRead one message from a socket.
method
gunicorn.ctl.protocol.ControlProtocol.read_message_async(reader) -> dictRead one message from an async reader.
method
gunicorn.ctl.protocol.ControlProtocol.write_message(sock, data:dict)Write one message to a socket.
method
gunicorn.ctl.protocol.ControlProtocol.write_message_async(writer, data:dict)Write one message to an async writer.
class
gunicorn.ctl.protocol.ProtocolErrorProtocol-level error.
func
gunicorn.ctl.protocol.make_error_response(request_id:int, error:str) -> dictCreate an error response message.
func
gunicorn.ctl.protocol.make_request(request_id:int, command:str, args:list=None) -> dictCreate a request message.
func
gunicorn.ctl.protocol.make_response(request_id:int, data:dict=None) -> dictCreate a success response message.
class
gunicorn.ctl.server.ControlSocketServerControl socket server running in arbiter process.
method
gunicorn.ctl.server.ControlSocketServer.stop()Stop server and cleanup socket.
func
gunicorn.debug.unspew()Remove the trace hook installed by spew.
class
gunicorn.dirty.app.DirtyAppBase class for dirty applications.
method
gunicorn.dirty.app.DirtyApp.close()Cleanup resources.
method
gunicorn.dirty.app.DirtyApp.init()Initialize the application.
func
gunicorn.dirty.app.parse_dirty_app_spec(spec)Parse a dirty app specification.
class
gunicorn.dirty.arbiter.DirtyArbiterDirty arbiter that manages the dirty worker pool.
method
gunicorn.dirty.arbiter.DirtyArbiter.init_signals()Set up signal handlers.
method
gunicorn.dirty.arbiter.DirtyArbiter.kill_worker(pid, sig)Kill a worker by PID.
method
gunicorn.dirty.arbiter.DirtyArbiter.murder_workers()Kill workers that have timed out.
method
gunicorn.dirty.arbiter.DirtyArbiter.reap_workers()Reap dead worker processes.
method
gunicorn.dirty.arbiter.DirtyArbiter.reload()Reload workers (SIGHUP handling).
method
gunicorn.dirty.arbiter.DirtyArbiter.run()Run the dirty arbiter (blocking call).
method
gunicorn.dirty.arbiter.DirtyArbiter.spawn_worker(force_all_apps=False)Spawn a new dirty worker.
method
gunicorn.dirty.arbiter.DirtyArbiter.stop(graceful=True)Stop all workers.
class
gunicorn.dirty.client.DirtyClientClient for calling dirty workers from HTTP workers.
method
gunicorn.dirty.client.DirtyClient.close()Close the sync connection.
method
gunicorn.dirty.client.DirtyClient.close_async()Close the async connection.
func
gunicorn.dirty.client.get_dirty_client(timeout=30.0) -> DirtyClientGet or create a thread-local sync client.
func
gunicorn.dirty.client.get_dirty_client_async(timeout=30.0) -> DirtyClientGet or create a context-local async client.
func
gunicorn.dirty.client.get_dirty_socket_path()Get the dirty socket path.
class
gunicorn.dirty.errors.DirtyAppErrorRaised when a dirty app encounters an error during execution.
class
gunicorn.dirty.errors.DirtyAppNotFoundErrorRaised when a dirty app is not found.
class
gunicorn.dirty.errors.DirtyConnectionErrorRaised when connection to dirty arbiter fails.
class
gunicorn.dirty.errors.DirtyErrorBase exception for all dirty arbiter errors.
class
gunicorn.dirty.errors.DirtyProtocolErrorRaised when there is a protocol-level error.
class
gunicorn.dirty.errors.DirtyTimeoutErrorRaised when a dirty operation times out.
class
gunicorn.dirty.errors.DirtyWorkerErrorRaised when a dirty worker encounters an error.
class
gunicorn.dirty.protocol.BinaryProtocolBinary message protocol for dirty worker IPC.
method
gunicorn.dirty.protocol.BinaryProtocol.decode_header(data:bytes) -> tupleDecode the 16-byte message header.
method
gunicorn.dirty.protocol.BinaryProtocol.decode_message(data:bytes) -> tupleDecode a complete message (header + payload).
method
gunicorn.dirty.protocol.BinaryProtocol.encode_chunk(request_id:int, data) -> bytesEncode a chunk message for streaming responses.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_end(request_id:int) -> bytesEncode an end-of-stream message.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_error(request_id:int, error) -> bytesEncode an error response message.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_header(msg_type:int, request_id:int, payload_length:int) -> bytesEncode the 16-byte message header.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_manage(request_id:int, op:int, count:int=1) -> bytesEncode a worker management message.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_request(request_id:int, app_path:str, action:str, args:tuple=None, kwargs:dict=None) -> bytesEncode a request message.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_response(request_id:int, result) -> bytesEncode a success response message.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_stash(request_id:int, op:int, table:str, key=None, value=None, pattern=None) -> bytesEncode a stash operation message.
method
gunicorn.dirty.protocol.BinaryProtocol.encode_status(request_id:int) -> bytesEncode a status query message.
method
gunicorn.dirty.protocol.BinaryProtocol.read_message(sock:socket.socket) -> dictRead a complete message from socket (sync).
method
gunicorn.dirty.protocol.BinaryProtocol.read_message_async(reader:asyncio.StreamReader) -> dictRead a complete binary message from async stream.
method
gunicorn.dirty.protocol.BinaryProtocol.write_message(sock:socket.socket, message:dict) -> NoneWrite a message to socket (sync).
method
gunicorn.dirty.protocol.BinaryProtocol.write_message_async(writer:asyncio.StreamWriter, message:dict) -> NoneWrite a message to async stream.
func
gunicorn.dirty.protocol.make_chunk_message(request_id, data) -> dictBuild a chunk message dict for streaming responses.
func
gunicorn.dirty.protocol.make_end_message(request_id) -> dictBuild an end-of-stream message dict.
func
gunicorn.dirty.protocol.make_error_response(request_id, error) -> dictBuild an error response message dict.
func
gunicorn.dirty.protocol.make_manage_message(request_id, op:int, count:int=1) -> dictBuild a worker management message dict.
func
gunicorn.dirty.protocol.make_request(request_id, app_path:str, action:str, args:tuple=None, kwargs:dict=None) -> dictBuild a request message dict.
func
gunicorn.dirty.protocol.make_response(request_id, result) -> dictBuild a success response message dict.
func
gunicorn.dirty.protocol.make_stash_message(request_id, op:int, table:str, key=None, value=None, pattern=None) -> dictBuild a stash operation message dict.
class
gunicorn.dirty.stash.StashClientClient for stash operations.
method
gunicorn.dirty.stash.StashClient.clear(table)Delete all entries in a table.
method
gunicorn.dirty.stash.StashClient.close()Close the client connection.
method
gunicorn.dirty.stash.StashClient.delete(table, key)Delete a key from a table.
method
gunicorn.dirty.stash.StashClient.delete_table(table)Delete an entire table.
method
gunicorn.dirty.stash.StashClient.exists(table, key=None)Check if a table or key exists.
method
gunicorn.dirty.stash.StashClient.get(table, key, default=None)Retrieve a value from a table.
method
gunicorn.dirty.stash.StashClient.info(table)Get information about a table.
method
gunicorn.dirty.stash.StashClient.put(table, key, value)Store a value in a table.
method
gunicorn.dirty.stash.StashClient.table(name)Get a dict-like interface to a table.
method
gunicorn.dirty.stash.StashClient.tables()List all tables.
class
gunicorn.dirty.stash.StashErrorBase exception for stash operations.
class
gunicorn.dirty.stash.StashKeyNotFoundErrorRaised when a key does not exist in a table.
class
gunicorn.dirty.stash.StashTableDict-like interface to a stash table.
method
gunicorn.dirty.stash.StashTable.clear()Delete all entries.
method
gunicorn.dirty.stash.StashTable.get(key, default=None)Get value with default.
method
gunicorn.dirty.stash.StashTable.items()Iterate over (key, value) pairs.
method
gunicorn.dirty.stash.StashTable.name()Table name.
method
gunicorn.dirty.stash.StashTable.values()Iterate over values.
class
gunicorn.dirty.stash.StashTableNotFoundErrorRaised when a table does not exist.
func
gunicorn.dirty.stash.clear(table)Delete all entries in a table.
func
gunicorn.dirty.stash.delete(table, key)Delete a key from a table.
func
gunicorn.dirty.stash.delete_table(table)Delete an entire table.
func
gunicorn.dirty.stash.ensure(table)Ensure a table exists.
func
gunicorn.dirty.stash.exists(table, key=None)Check if a table or key exists.
func
gunicorn.dirty.stash.get(table, key, default=None)Retrieve a value from a table.
func
gunicorn.dirty.stash.get_stash_socket_path()Get the stash socket path.
func
gunicorn.dirty.stash.info(table)Get information about a table.
func
gunicorn.dirty.stash.keys(table, pattern=None)Get all keys in a table.
func
gunicorn.dirty.stash.put(table, key, value)Store a value in a table.
func
gunicorn.dirty.stash.table(name)Get a dict-like interface to a table.
func
gunicorn.dirty.stash.tables()List all tables.
class
gunicorn.dirty.tlv.TLVEncoderTLV binary encoder/decoder.
method
gunicorn.dirty.tlv.TLVEncoder.decode(data:bytes, offset:int=0) -> tupleDecode a TLV-encoded value from binary data.
method
gunicorn.dirty.tlv.TLVEncoder.encode(value) -> bytesEncode a Python value to TLV binary format.
method
gunicorn.dirty.worker.DirtyWorker.handle_request(message, writer)Handle a single request message.
method
gunicorn.dirty.worker.DirtyWorker.init_signals()Set up signal handlers.
method
gunicorn.dirty.worker.DirtyWorker.load_apps()Load all configured dirty apps.
method
gunicorn.dirty.worker.DirtyWorker.notify()Update heartbeat timestamp.
method
gunicorn.dirty.worker.DirtyWorker.run()Run the main asyncio event loop.
class
gunicorn.errors.AppImportErrorException raised when loading an application
class
gunicorn.errors.ConfigErrorException raised on config error
method
gunicorn.glogging.Logger.access_log_enabled()Check if access logging is enabled.
method
gunicorn.glogging.Logger.atoms(resp, req, environ, request_time)Gets atoms for log formatting.
method
gunicorn.glogging.Logger.now()return date in Apache Common Log Format
func
gunicorn.glogging.loggers()get list of all loggers
class
gunicorn.http.errors.InvalidChunkExtensionInvalid chunk extension per RFC 9112.
class
gunicorn.http.message.PPCommandPROXY protocol v2 commands.
class
gunicorn.http.message.PPFamilyPROXY protocol v2 address families.
class
gunicorn.http.message.PPProtocolPROXY protocol v2 transport protocols.
func
gunicorn.http.wsgi.send_early_hints(headers)Send 103 Early Hints response.
class
gunicorn.http2.async_connection.AsyncHTTP2ConnectionAsync HTTP/2 server-side connection handler for ASGI.
method
gunicorn.http2.async_connection.AsyncHTTP2Connection.is_closed()Check if connection is closed.
method
gunicorn.http2.async_connection.AsyncHTTP2Connection.send_data(stream_id, data, end_stream=False)Send data on a stream.
class
gunicorn.http2.connection.HTTP2ServerConnectionHTTP/2 server-side connection handler.
method
gunicorn.http2.connection.HTTP2ServerConnection.is_closed()Check if connection is closed.
method
gunicorn.http2.connection.HTTP2ServerConnection.send_data(stream_id, data, end_stream=False)Send data on a stream.
class
gunicorn.http2.errors.HTTP2CancelStream was cancelled.
class
gunicorn.http2.errors.HTTP2CompressionErrorCompression state error.
class
gunicorn.http2.errors.HTTP2ConfigurationErrorInvalid HTTP/2 configuration.
class
gunicorn.http2.errors.HTTP2ConnectErrorConnection error during CONNECT.
class
gunicorn.http2.errors.HTTP2ConnectionErrorError affecting the entire connection.
class
gunicorn.http2.errors.HTTP2EnhanceYourCalmPeer is generating excessive load.
class
gunicorn.http2.errors.HTTP2ErrorBase exception for HTTP/2 errors.
class
gunicorn.http2.errors.HTTP2ErrorCodeHTTP/2 Error Codes (RFC 7540 Section 7).
class
gunicorn.http2.errors.HTTP2FlowControlErrorFlow control limits exceeded.
class
gunicorn.http2.errors.HTTP2FrameSizeErrorFrame size is incorrect.
class
gunicorn.http2.errors.HTTP2InadequateSecurityTransport security is inadequate.
class
gunicorn.http2.errors.HTTP2InternalErrorInternal error occurred.
class
gunicorn.http2.errors.HTTP2NotAvailableHTTP/2 support is not available (h2 library not installed).
class
gunicorn.http2.errors.HTTP2ProtocolErrorProtocol error detected.
class
gunicorn.http2.errors.HTTP2RefusedStreamStream was refused.
class
gunicorn.http2.errors.HTTP2RequiresHTTP11HTTP/1.1 is required for this request.
class
gunicorn.http2.errors.HTTP2SettingsTimeoutSettings acknowledgment timeout.
class
gunicorn.http2.errors.HTTP2StreamClosedStream was closed.
class
gunicorn.http2.errors.HTTP2StreamErrorError specific to a single stream.
func
gunicorn.http2.get_h2_version()Get the installed h2 library version.
func
gunicorn.http2.is_http2_available()Check if HTTP/2 support is available.
class
gunicorn.http2.request.HTTP2BodyBody wrapper for HTTP/2 request data.
method
gunicorn.http2.request.HTTP2Body.close()Close the body stream.
method
gunicorn.http2.request.HTTP2Body.read(size=None)Read data from the body.
method
gunicorn.http2.request.HTTP2Body.readline(size=None)Read a line from the body.
method
gunicorn.http2.request.HTTP2Body.readlines(hint=None)Read all lines from the body.
class
gunicorn.http2.stream.HTTP2StreamRepresents a single HTTP/2 stream.
method
gunicorn.http2.stream.HTTP2Stream.can_send()Check if this stream can send data.
method
gunicorn.http2.stream.HTTP2Stream.close()Close this stream normally.
method
gunicorn.http2.stream.HTTP2Stream.get_request_body()Get the complete request body.
method
gunicorn.http2.stream.HTTP2Stream.reset(error_code=8)Reset this stream with RST_STREAM.
method
gunicorn.http2.stream.HTTP2Stream.send_data(data, end_stream=False)Mark data as sent.
method
gunicorn.http2.stream.HTTP2Stream.send_headers(headers, end_stream=False)Mark headers as sent.
class
gunicorn.http2.stream.StreamStateHTTP/2 stream states as defined in RFC 7540 Section 5.1.
class
gunicorn.instrument.statsd.StatsdstatsD-based instrumentation, that passes as a logger
class
gunicorn.pidfile.PidfileManage a PID file.
method
gunicorn.pidfile.Pidfile.unlink()delete pidfile
func
gunicorn.systemd.sd_notify(state, logger, unset_environment=False)Send a notification to systemd.
func
gunicorn.util.daemonize(enable_stdio_inheritance=False)Standard daemonization of a process.
func
gunicorn.util.get_username(uid)get the username for a user id
class
gunicorn.uwsgi.errors.ForbiddenUWSGIRequestRaised when source IP is not in the allow list.
class
gunicorn.uwsgi.errors.InvalidUWSGIHeaderRaised when the uWSGI header is malformed.
class
gunicorn.uwsgi.errors.UWSGIParseExceptionBase exception for uWSGI protocol parsing errors.
class
gunicorn.uwsgi.errors.UnsupportedModifierRaised when modifier1 is not 0 (WSGI request).
class
gunicorn.uwsgi.message.UWSGIRequestuWSGI protocol request parser.
class
gunicorn.uwsgi.parser.UWSGIParserParser for uWSGI protocol requests.
method
gunicorn.workers.base.Worker.run()This is the mainloop of a worker process.
class
gunicorn.workers.gasgi.ASGIWorkerASGI worker using asyncio event loop.
method
gunicorn.workers.gasgi.ASGIWorker.handle_abort_signal()Handle SIGABRT - abort.
method
gunicorn.workers.gasgi.ASGIWorker.handle_usr1_signal()Handle SIGUSR1 - reopen log files.
method
gunicorn.workers.gasgi.ASGIWorker.init_process()Initialize the worker process.
method
gunicorn.workers.gasgi.ASGIWorker.load_wsgi()Load the ASGI application.
method
gunicorn.workers.gasgi.ASGIWorker.run()Main entry point for the worker.
class
gunicorn.workers.ggevent.GeventPyWSGIWorkerThe Gevent StreamServer based workers.
class
gunicorn.workers.gthread.PollableMethodQueueThread-safe queue that can wake up a selector.
method
gunicorn.workers.gthread.PollableMethodQueue.close()Close the pipe file descriptors.
method
gunicorn.workers.gthread.PollableMethodQueue.init()Initialize the pipe and queue.
method
gunicorn.workers.gthread.PollableMethodQueue.run_callbacks(_fileobj, max_callbacks=50)Run queued callbacks.
class
gunicorn.workers.sync.StopWaitingexception raised to stop waiting for a connection
この情報について
掲載しているシグネチャは benoitc/gunicorn の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。