Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
4,571 in github.com/benoitc/gunicorn
⨍
Functions
4,571
◇
Types & classes
1,022
↳
Endpoints
130
↓ 2 callers
Function
loggers
get list of all loggers
gunicorn/glogging.py:88
↓ 2 callers
Function
make_uwsgi_packet_with_body
Create uWSGI packet with body for testing.
tests/test_uwsgi.py:42
↓ 2 callers
Method
murder_pending
Close expired pending connections (waiting for initial data).
gunicorn/workers/gthread.py:333
↓ 2 callers
Method
murder_workers
Kill workers that have timed out.
gunicorn/dirty/arbiter.py:1051
↓ 2 callers
Method
notify
(self)
gunicorn/workers/workertmp.py:42
↓ 2 callers
Method
nworkers_changed
(server, new_value, old_value)
gunicorn/config.py:2067
↓ 2 callers
Method
on_dirty_starting
(arbiter)
gunicorn/config.py:3096
↓ 2 callers
Method
parse_headers
(self, data, from_trailer=False)
gunicorn/http/message.py:303
↓ 2 callers
Method
read
(self, size)
gunicorn/http/body.py:126
↓ 2 callers
Method
read
(self, size)
gunicorn/http/body.py:157
↓ 2 callers
Method
readexactly
(self, n)
benchmarks/dirty_streaming.py:94
↓ 2 callers
Method
readlines
(self, size=None)
gunicorn/http/body.py:263
↓ 2 callers
Method
reap_dirty_arbiter
\ Reap the dirty arbiter process if it has exited.
gunicorn/arbiter.py:962
↓ 2 callers
Method
reload
Reload workers (SIGHUP handling).
gunicorn/dirty/arbiter.py:1095
↓ 2 callers
Method
reload
Trigger graceful reload (equivalent to SIGHUP). Returns: Dictionary with status
gunicorn/ctl/handlers.py:419
↓ 2 callers
Method
rename
(self, path)
gunicorn/pidfile.py:48
↓ 2 callers
Method
reopen
Reopen log files (equivalent to SIGUSR1). Returns: Dictionary with status
gunicorn/ctl/handlers.py:430
↓ 2 callers
Method
reset
(self)
tests/test_statsd.py:52
↓ 2 callers
Method
resize
Resize an image. Equivalent to Celery: @app.task def resize_image(image_path, width, height):
examples/celery_alternative/tasks.py:193
↓ 2 callers
Function
run
\ The ``gunicorn`` command line runner for launching Gunicorn with generic WSGI applications.
gunicorn/app/wsgiapp.py:60
↓ 2 callers
Method
run
\ This is the mainloop of a worker process. You should override this method in a subclass to provide the intended behaviour fo
gunicorn/workers/base.py:78
↓ 2 callers
Method
send
(message)
gunicorn/asgi/protocol.py:963
↓ 2 callers
Function
send_error
Send an error response.
tests/docker/asgi_compliance/apps/http_app.py:586
↓ 2 callers
Method
send_error
Send an error response on a stream.
gunicorn/http2/async_connection.py:527
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:40
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:66
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:62
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/blacksheep_app/app.py:42
↓ 2 callers
Function
serialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:40
↓ 2 callers
Method
set_body_reader
(self)
gunicorn/http/message.py:378
↓ 2 callers
Method
setup
(self, app)
gunicorn/arbiter.py:109
↓ 2 callers
Method
setup
(self)
tests/docker/dirty_ttin_ttou/app.py:30
↓ 2 callers
Method
should_close
Check if connection should close after this request. HTTP/2 connections are persistent by design, but we may still need to close if e
gunicorn/http2/request.py:172
↓ 2 callers
Method
show_config
Return current effective configuration. Returns: Dictionary of configuration values
gunicorn/ctl/handlers.py:129
↓ 2 callers
Method
show_dirty
Return dirty workers and apps information. Returns: Dictionary with: - enabled: Whether dirty arbiter is run
gunicorn/ctl/handlers.py:69
↓ 2 callers
Method
show_stats
Return server statistics. Returns: Dictionary with: - uptime: Seconds since arbiter started - pi
gunicorn/ctl/handlers.py:164
↓ 2 callers
Method
stream_lines
Stream response lines from URL.
tests/docker/asgi_compliance/conftest.py:344
↓ 2 callers
Function
sync_gen
()
benchmarks/dirty_streaming.py:214
↓ 2 callers
Method
szread
(self, func, sizes)
tests/treq.py:160
↓ 2 callers
Method
timer
(self, name, value)
gunicorn/instrument/statsd.py:122
↓ 2 callers
Method
wait_closed
(self)
tests/test_dirty_arbiter.py:60
↓ 2 callers
Method
wait_closed
(self)
tests/dirty/test_worker_streaming.py:57
↓ 2 callers
Method
watchdog
(self)
gunicorn/workers/gtornado.py:45
↓ 2 callers
Method
worker_abort
(worker)
gunicorn/config.py:1960
↓ 2 callers
Method
worker_exit
(server, worker)
gunicorn/config.py:2050
↓ 2 callers
Method
write
(self, data)
tests/test_dirty_arbiter.py:34
↓ 1 callers
Method
__init__
(self, extra_files=None, interval=1, callback=None)
gunicorn/reloader.py:20
↓ 1 callers
Method
__init__
(self, cfg)
gunicorn/glogging.py:183
↓ 1 callers
Method
__init__
(self, address, conf, log, fd=None)
gunicorn/sock.py:21
↓ 1 callers
Method
__init__
(self, cfg, unreader, peer_addr)
gunicorn/http/message.py:181
↓ 1 callers
Method
__init__
(self, cfg, sock, client, server)
gunicorn/workers/gthread.py:43
↓ 1 callers
Method
__init__
(self)
tests/test_dirty_integration.py:20
↓ 1 callers
Method
__setitem__
(self, key, value)
gunicorn/dirty/stash.py:367
↓ 1 callers
Method
_arm_keepalive_timer
Arm keepalive timeout timer after response completion.
gunicorn/asgi/protocol.py:660
↓ 1 callers
Method
_async_parse
Async version of parse() - reads data then uses sync parsing.
gunicorn/asgi/uwsgi.py:87
↓ 1 callers
Method
_async_read_exact
Read exactly size bytes asynchronously.
gunicorn/asgi/uwsgi.py:111
↓ 1 callers
Method
_build_http2_environ
Build minimal environ dict for access logging.
gunicorn/asgi/protocol.py:1787
↓ 1 callers
Method
_build_messages
(self)
benchmarks/dirty_streaming.py:432
↓ 1 callers
Method
_build_receive_result
Build receive result after waiting for data.
gunicorn/asgi/protocol.py:260
↓ 1 callers
Function
_build_worker
(loop, app, http_parser)
tests/test_asgi_keepalive_smuggling.py:87
↓ 1 callers
Function
_called_with_wrong_args
Check whether calling a function raised a ``TypeError`` because the call failed or because something in the function raised the error. :p
gunicorn/util.py:386
↓ 1 callers
Function
_check_fast_parser
Check if fast C parser is available and should be used. Returns False if: - http_parser='python' is explicitly set - gunicorn_h1c is not
gunicorn/http/message.py:35
↓ 1 callers
Method
_check_h1c_protocol_available
Check if H1CProtocol is available (cached at class level).
gunicorn/asgi/protocol.py:428
↓ 1 callers
Method
_cleanup
Clean up resources on exit.
gunicorn/workers/gasgi.py:272
↓ 1 callers
Method
_connect
Establish connection to arbiter.
gunicorn/dirty/stash.py:114
↓ 1 callers
Method
_connect_smtp
Establish SMTP connection (simulated for demo).
examples/celery_alternative/tasks.py:57
↓ 1 callers
Function
_consume_indented
(lines: List[str], start: int)
scripts/build_settings_doc.py:107
↓ 1 callers
Function
_convert_desc
(desc: str)
scripts/build_settings_doc.py:121
↓ 1 callers
Function
_convert_refs
(text: str)
scripts/build_settings_doc.py:81
↓ 1 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:169
↓ 1 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:216
↓ 1 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_compat.py:50
↓ 1 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:158
↓ 1 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:205
↓ 1 callers
Method
_dispatch
Dispatch command to appropriate handler. Args: message: Request message dict Returns: Response dict
gunicorn/ctl/server.py:288
↓ 1 callers
Method
_execute_command
Execute a parsed command. Args: parts: Command parts (e.g., ["show", "workers"]) Returns: Handler r
gunicorn/ctl/server.py:325
↓ 1 callers
Method
_execute_locked
Execute while holding the lock.
gunicorn/dirty/client.py:101
↓ 1 callers
Method
_feed_callback_parser
Feed data to callback parser, handling parse errors. Returns True if parsing should continue, False if connection was closed.
gunicorn/asgi/protocol.py:610
↓ 1 callers
Method
_finalize_headers
Called when all headers received. Validates headers for request smuggling vulnerabilities: - Rejects duplicate Content-Length headers
gunicorn/asgi/parser.py:581
↓ 1 callers
Function
_format_cli
(setting: guncfg.Setting)
scripts/build_settings_doc.py:51
↓ 1 callers
Function
_format_default
(setting: guncfg.Setting)
scripts/build_settings_doc.py:38
↓ 1 callers
Function
_format_setting
(setting: guncfg.Setting)
scripts/build_settings_doc.py:195
↓ 1 callers
Function
_get_alpn_protocols
Get ALPN protocol list from configuration. Returns list of ALPN protocol identifiers based on http_protocols setting. Returns empty list if H
gunicorn/sock.py:238
↓ 1 callers
Method
_get_buffered_data
Get all buffered data and reset buffer.
gunicorn/asgi/unreader.py:42
↓ 1 callers
Function
_get_cached_date_header
Get cached Date header, updating once per second.
gunicorn/asgi/protocol.py:125
↓ 1 callers
Function
_get_cached_status_line
Get cached status line bytes.
gunicorn/asgi/protocol.py:137
↓ 1 callers
Method
_get_control_socket_path
Get the control socket path, making relative paths absolute.
gunicorn/arbiter.py:995
↓ 1 callers
Method
_get_gunicorn_handler
(self, log)
gunicorn/glogging.py:424
↓ 1 callers
Method
_get_request_id
Generate a unique request ID.
gunicorn/dirty/stash.py:110
↓ 1 callers
Method
_get_response
Match prompt to a canned response. Args: prompt: User's input prompt Returns: str: Matched response text
examples/streaming_chat/chat_app.py:112
↓ 1 callers
Method
_get_ssl_context
Get SSL context if configured.
gunicorn/workers/gasgi.py:260
↓ 1 callers
Method
_get_user
(self, environ)
gunicorn/glogging.py:479
↓ 1 callers
Method
_handle
(self, data)
tests/test_asgi_worker.py:485
↓ 1 callers
Method
_handle_close
Handle incoming close frame.
gunicorn/asgi/websocket.py:372
↓ 1 callers
Method
_handle_connection
Main request handling loop using callback-based parser. Uses synchronous parsing in data_received(), avoiding the async overhead of p
gunicorn/asgi/protocol.py:761
↓ 1 callers
Method
_handle_connection_terminated
Handle ConnectionTerminated event (GOAWAY frame). Args: event: ConnectionTerminated event
gunicorn/http2/connection.py:316
↓ 1 callers
Method
_handle_connection_terminated
Handle ConnectionTerminated event.
gunicorn/http2/async_connection.py:299
↓ 1 callers
Method
_handle_connection_uwsgi
Handle uWSGI protocol connections (legacy path).
gunicorn/asgi/protocol.py:857
↓ 1 callers
Method
_handle_continuation
Handle continuation frame (already processed in _read_frame).
gunicorn/asgi/websocket.py:390
↓ 1 callers
Method
_handle_data_received
Handle DataReceived event. Args: event: DataReceived event with body data Returns: None (request completion
gunicorn/http2/connection.py:243
← previous
next →
601–700 of 4,571, ranked by callers