Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
5,599 in github.com/benoitc/gunicorn
⨍
Functions
5,599
◇
Types & classes
1,147
↳
Endpoints
142
↓ 1 callers
Function
git
(*args)
benchmarks/asgi/run.py:219
↓ 1 callers
Method
halt
halt arbiter
gunicorn/arbiter.py:400
↓ 1 callers
Function
handle_broadcast
Simple broadcast simulation - echo message multiple times.
tests/docker/asgi_compliance/apps/websocket_app.py:290
↓ 1 callers
Function
handle_chunked
Explicit chunked response with variable chunk sizes.
tests/docker/asgi_compliance/apps/streaming_app.py:170
↓ 1 callers
Method
handle_client
Handle a connection from an HTTP worker. Routes requests to available dirty workers and returns responses. Supports both reg
gunicorn/dirty/arbiter.py:408
↓ 1 callers
Function
handle_close
Close connection with specific code from query parameter.
tests/docker/asgi_compliance/apps/websocket_app.py:173
↓ 1 callers
Function
handle_combined
Show both priority and trailers in one response. This demonstrates a realistic scenario like gRPC where priority affects scheduling and trail
examples/http2_features/http2_app.py:188
↓ 1 callers
Function
handle_cookies
Set and return cookies.
tests/docker/asgi_compliance/apps/http_app.py:489
↓ 1 callers
Function
handle_counter
Increment and return a counter (tests state persistence).
tests/docker/asgi_compliance/apps/lifespan_app.py:211
↓ 1 callers
Function
handle_delay
Respond after a delay (for timeout testing).
tests/docker/asgi_compliance/apps/http_app.py:397
↓ 1 callers
Function
handle_delay
Test delayed responses.
tests/docker/asgi_compliance/apps/websocket_app.py:420
↓ 1 callers
Function
handle_early_hints
Send 103 Early Hints before the response.
tests/docker/asgi_compliance/apps/http_app.py:457
↓ 1 callers
Function
handle_echo
Echo back the request body.
tests/docker/asgi_compliance/apps/http_app.py:94
↓ 1 callers
Function
handle_echo
Echo text messages back to the client.
tests/docker/asgi_compliance/apps/websocket_app.py:68
↓ 1 callers
Function
handle_echo
Echo back the request body.
tests/docker/uwsgi/app.py:49
↓ 1 callers
Function
handle_echo_binary
Echo binary messages back to the client.
tests/docker/asgi_compliance/apps/websocket_app.py:100
↓ 1 callers
Function
handle_echo_stream
Echo request body as a stream.
tests/docker/asgi_compliance/apps/streaming_app.py:340
↓ 1 callers
Function
handle_environ
Return WSGI environ variables as JSON.
tests/docker/uwsgi/app.py:94
↓ 1 callers
Function
handle_error
Return specified HTTP error code.
tests/docker/uwsgi/app.py:120
↓ 1 callers
Method
handle_exit_signal
Handle SIGTERM - graceful shutdown.
gunicorn/workers/gasgi.py:134
↓ 1 callers
Function
handle_fragmented
Test fragmented message handling (assembled by protocol).
tests/docker/asgi_compliance/apps/websocket_app.py:377
↓ 1 callers
Function
handle_headers
Return request headers as JSON.
tests/docker/asgi_compliance/apps/http_app.py:123
↓ 1 callers
Function
handle_headers
Return received HTTP headers as JSON.
tests/docker/uwsgi/app.py:69
↓ 1 callers
Function
handle_health
Health check endpoint.
tests/docker/asgi_compliance/apps/http_app.py:436
↓ 1 callers
Function
handle_health
Health check that verifies lifespan startup completed.
tests/docker/asgi_compliance/apps/lifespan_app.py:244
↓ 1 callers
Function
handle_health
Health check endpoint.
tests/docker/asgi_compliance/apps/streaming_app.py:429
↓ 1 callers
Function
handle_health
Health check endpoint.
tests/docker/asgi_compliance/apps/main_app.py:185
↓ 1 callers
Function
handle_http
Route HTTP requests to handlers.
examples/http2_features/http2_app.py:53
↓ 1 callers
Function
handle_http
Handle HTTP requests.
examples/asgi/basic_app.py:42
↓ 1 callers
Function
handle_http
Handle HTTP requests - serve a simple HTML page for WebSocket testing.
examples/asgi/websocket_app.py:52
↓ 1 callers
Method
handle_http2_request
Handle a single HTTP/2 request/stream.
gunicorn/workers/gthread.py:692
↓ 1 callers
Method
handle_http2_request
Handle a single HTTP/2 request.
gunicorn/workers/base_async.py:245
↓ 1 callers
Method
handle_hup
\ HUP handling. - Reload configuration - Start the new worker processes with a new configuration - Gracefully shutdown
gunicorn/arbiter.py:305
↓ 1 callers
Function
handle_index
Show available endpoints and HTTP/2 features.
examples/http2_features/http2_app.py:72
↓ 1 callers
Function
handle_infinite
Infinite stream (until client disconnects or limit reached).
tests/docker/asgi_compliance/apps/streaming_app.py:293
↓ 1 callers
Function
handle_info
Detailed server information.
tests/docker/asgi_compliance/apps/main_app.py:206
↓ 1 callers
Function
handle_json
Handle JSON POST requests.
tests/docker/uwsgi/app.py:171
↓ 1 callers
Function
handle_large
Return a large response (1MB by default).
tests/docker/asgi_compliance/apps/http_app.py:250
↓ 1 callers
Function
handle_large
Return a 1MB response body for testing large responses.
tests/docker/uwsgi/app.py:149
↓ 1 callers
Function
handle_large_message
Test large message handling.
tests/docker/asgi_compliance/apps/websocket_app.py:331
↓ 1 callers
Function
handle_large_stream
Stream a large response in chunks.
tests/docker/asgi_compliance/apps/streaming_app.py:249
↓ 1 callers
Function
handle_lifespan
Handle ASGI lifespan events.
tests/docker/asgi_compliance/apps/http_app.py:61
↓ 1 callers
Function
handle_lifespan
Handle ASGI lifespan protocol.
tests/docker/asgi_compliance/apps/lifespan_app.py:53
↓ 1 callers
Function
handle_lifespan
Handle ASGI lifespan events.
tests/docker/asgi_compliance/apps/streaming_app.py:51
↓ 1 callers
Function
handle_lifespan
Handle ASGI lifespan events.
tests/docker/asgi_compliance/apps/main_app.py:98
↓ 1 callers
Function
handle_lifespan
Handle ASGI lifespan events.
tests/docker/asgi_compliance/apps/websocket_app.py:57
↓ 1 callers
Function
handle_lifespan
Handle lifespan events (startup/shutdown).
examples/http2_features/http2_app.py:40
↓ 1 callers
Function
handle_lifespan
Handle lifespan events (startup/shutdown).
examples/asgi/basic_app.py:29
↓ 1 callers
Function
handle_lifespan
Handle lifespan events.
examples/asgi/websocket_app.py:41
↓ 1 callers
Function
handle_lifespan_info
Return lifespan-specific information.
tests/docker/asgi_compliance/apps/lifespan_app.py:175
↓ 1 callers
Method
handle_manage_request
Handle a worker management request. Supports adding or removing dirty workers via protocol messages. Args: mess
gunicorn/dirty/arbiter.py:704
↓ 1 callers
Function
handle_method
Return the HTTP method used.
tests/docker/asgi_compliance/apps/http_app.py:286
↓ 1 callers
Function
handle_ndjson
Newline-delimited JSON stream.
tests/docker/asgi_compliance/apps/streaming_app.py:380
↓ 1 callers
Function
handle_not_found
Handle 404 Not Found.
tests/docker/asgi_compliance/apps/http_app.py:572
↓ 1 callers
Function
handle_not_found
Handle 404 Not Found.
tests/docker/asgi_compliance/apps/lifespan_app.py:270
↓ 1 callers
Function
handle_not_found
Handle 404 Not Found.
tests/docker/asgi_compliance/apps/streaming_app.py:450
↓ 1 callers
Function
handle_not_found
Handle 404 for unknown paths.
tests/docker/uwsgi/app.py:217
↓ 1 callers
Function
handle_ping
Echo ping messages (handled at protocol level, but test app behavior).
tests/docker/asgi_compliance/apps/websocket_app.py:259
↓ 1 callers
Function
handle_post_json
Parse JSON body and return it.
tests/docker/asgi_compliance/apps/http_app.py:352
↓ 1 callers
Function
handle_priority
Return stream priority information. HTTP/2 allows clients to indicate relative importance of requests. Gunicorn exposes this through the http
examples/http2_features/http2_app.py:94
↓ 1 callers
Function
handle_query
Return parsed query parameters.
tests/docker/asgi_compliance/apps/http_app.py:309
↓ 1 callers
Function
handle_query
Return query string parameters as JSON.
tests/docker/uwsgi/app.py:198
↓ 1 callers
Method
handle_quit_signal
Handle SIGQUIT/SIGINT - immediate shutdown.
gunicorn/workers/gasgi.py:125
↓ 1 callers
Function
handle_redirect
Redirect to another URL.
tests/docker/asgi_compliance/apps/http_app.py:537
↓ 1 callers
Function
handle_reject
Reject the WebSocket connection.
tests/docker/asgi_compliance/apps/websocket_app.py:245
↓ 1 callers
Method
handle_request
(self, req, conn)
gunicorn/workers/gthread.py:750
↓ 1 callers
Method
handle_request
(self)
gunicorn/workers/gtornado.py:39
↓ 1 callers
Method
handle_request
(self, listener_name, req, sock, addr)
gunicorn/workers/base_async.py:311
↓ 1 callers
Function
handle_root
Handle root path - basic response.
tests/docker/asgi_compliance/apps/http_app.py:75
↓ 1 callers
Function
handle_root
Root endpoint.
tests/docker/asgi_compliance/apps/lifespan_app.py:100
↓ 1 callers
Function
handle_root
Root endpoint with routing information.
tests/docker/asgi_compliance/apps/main_app.py:126
↓ 1 callers
Function
handle_root
Basic root endpoint.
tests/docker/uwsgi/app.py:41
↓ 1 callers
Function
handle_scope
Return ASGI scope as JSON for inspection.
tests/docker/asgi_compliance/apps/http_app.py:159
↓ 1 callers
Function
handle_scope
Return WebSocket scope as JSON.
tests/docker/asgi_compliance/apps/websocket_app.py:206
↓ 1 callers
Function
handle_slow_stream
Slow streaming response with configurable delays.
tests/docker/asgi_compliance/apps/streaming_app.py:205
↓ 1 callers
Function
handle_sse
Server-Sent Events stream.
tests/docker/asgi_compliance/apps/streaming_app.py:106
↓ 1 callers
Method
handle_stash_request
Handle a stash operation directly in the arbiter. All stash tables are stored in arbiter memory for simplicity and fast acce
gunicorn/dirty/arbiter.py:798
↓ 1 callers
Function
handle_state
Return the current state (from scope or module-level).
tests/docker/asgi_compliance/apps/lifespan_app.py:127
↓ 1 callers
Function
handle_status
Return specific HTTP status code from query parameter.
tests/docker/asgi_compliance/apps/http_app.py:213
↓ 1 callers
Method
handle_status_request
Handle a status query request. Returns information about the dirty arbiter and its workers. Args: message: Stat
gunicorn/dirty/arbiter.py:663
↓ 1 callers
Function
handle_streaming
Basic streaming response without Content-Length.
tests/docker/asgi_compliance/apps/streaming_app.py:62
↓ 1 callers
Function
handle_subprotocol
Negotiate WebSocket subprotocol.
tests/docker/asgi_compliance/apps/websocket_app.py:128
↓ 1 callers
Function
handle_trailers
Demonstrate response trailers. Trailers are headers sent after the response body. Common uses: gRPC status codes, checksums, timing info.
examples/http2_features/http2_app.py:127
↓ 1 callers
Function
handle_unknown
Handle unknown WebSocket paths - accept then close.
tests/docker/asgi_compliance/apps/websocket_app.py:460
↓ 1 callers
Method
handle_usr1
\ SIGUSR1 handling. Kill all workers by sending them a SIGUSR1
gunicorn/arbiter.py:350
↓ 1 callers
Function
handle_websocket
Handle WebSocket connections.
examples/asgi/websocket_app.py:82
↓ 1 callers
Method
handler
(reader, writer)
tests/ctl/test_protocol.py:212
↓ 1 callers
Method
histogram
(self, name, value)
gunicorn/instrument/statsd.py:128
↓ 1 callers
Method
init
(self, parser, opts, args)
gunicorn/app/base.py:46
↓ 1 callers
Method
init
(self)
examples/dirty_example/dirty_app.py:129
↓ 1 callers
Function
initCollapsibleTOC
()
docs/content/assets/javascripts/toc-collapse.js:3
↓ 1 callers
Method
init_process
Initialize the worker process after fork. This is called in the child process after fork. It sets up the environment, loads
gunicorn/dirty/worker.py:142
↓ 1 callers
Method
init_signals
(self)
gunicorn/workers/base.py:164
↓ 1 callers
Method
initiate_upgrade
Switch a connection to HTTP/2 after an Upgrade: h2c request. The async twin of HTTP2Connection.initiate_upgrade. The upgraded request
gunicorn/http2/async_connection.py:154
↓ 1 callers
Method
is_parent_alive
(self)
gunicorn/workers/gthread.py:388
↓ 1 callers
Method
kill_one_worker
(self, service)
tests/docker/stress/conftest.py:156
↓ 1 callers
Function
large_body
Generate large request/response body.
tests/docker/asgi_framework_compat/conftest.py:205
↓ 1 callers
Function
load_class
(uri, default="gunicorn.workers.sync.SyncWorker", section="gunicorn.workers")
gunicorn/util.py:88
↓ 1 callers
Method
load_config
This method is used to load the configuration from one or several input(s). Custom Command line, configuration file. You have
gunicorn/app/base.py:52
↓ 1 callers
Method
load_config_from_module_name_or_filename
Loads the configuration file: the file is a python file, otherwise raise an RuntimeError Exception or stop the process if the configu
gunicorn/app/base.py:123
← previous
next →
1,201–1,300 of 5,599, ranked by callers