Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
4,774 in github.com/benoitc/gunicorn
⨍
Functions
4,774
◇
Types & classes
1,056
↳
Endpoints
130
↓ 1 callers
Function
format_headers
Format headers for display.
examples/asgi/basic_app.py:109
↓ 1 callers
Function
format_help
Format help output for display.
gunicorn/ctl/cli.py:156
↓ 1 callers
Function
format_listeners
Format listeners output for display.
gunicorn/ctl/cli.py:120
↓ 1 callers
Function
format_request_info
Format request info as JSON.
examples/asgi/basic_app.py:117
↓ 1 callers
Function
format_stats
Format stats output for display.
gunicorn/ctl/cli.py:87
↓ 1 callers
Function
format_workers
Format workers output for display.
gunicorn/ctl/cli.py:20
↓ 1 callers
Method
gauge
(self, name, value)
gunicorn/instrument/statsd.py:113
↓ 1 callers
Function
gen_3_chunks
()
benchmarks/dirty_streaming.py:295
↓ 1 callers
Method
gen_cases
(self, cfg)
tests/treq.py:251
↓ 1 callers
Function
gen_chunks
()
benchmarks/dirty_streaming.py:383
↓ 1 callers
Function
generate
()
tests/docker/uwsgi/app.py:164
↓ 1 callers
Function
generate
()
tests/docker/http2/app.py:62
↓ 1 callers
Function
generate
()
examples/http2_gevent/app.py:70
↓ 1 callers
Method
generate
Generate a streaming response for the given prompt. Yields tokens (words) one at a time with realistic delays to simulate LLM inferen
examples/streaming_chat/chat_app.py:64
↓ 1 callers
Function
generate_markdown
Generate markdown compatibility grid.
tests/docker/asgi_framework_compat/scripts/generate_grid.py:79
↓ 1 callers
Function
generate_report
Generate a summary report from benchmark results.
benchmarks/dirty_benchmark.py:853
↓ 1 callers
Function
generate_self_signed_cert
Generate self-signed SSL certificates for testing.
tests/docker/asgi_compliance/conftest.py:19
↓ 1 callers
Function
generate_self_signed_cert
Generate self-signed SSL certificates for testing.
tests/docker/http2/conftest.py:18
↓ 1 callers
Method
generate_thumbnail
Generate a thumbnail.
examples/celery_alternative/tasks.py:224
↓ 1 callers
Method
get_backlog
(self)
gunicorn/sock.py:98
↓ 1 callers
Method
get_cmd_args_from_env
(self)
gunicorn/config.py:86
↓ 1 callers
Method
get_config_from_filename
(self, filename)
gunicorn/app/base.py:92
↓ 1 callers
Method
get_config_from_module_name
(self, module_name)
gunicorn/app/base.py:119
↓ 1 callers
Method
get_data
(self, unreader, buf, stop=False)
gunicorn/http/message.py:508
↓ 1 callers
Method
get_dirs
(self)
gunicorn/reloader.py:105
↓ 1 callers
Function
get_dirty_arbiter_pid
Get the dirty arbiter PID from the container.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:66
↓ 1 callers
Function
get_dirty_client
Get the dirty client, with fallback for when dirty workers aren't enabled.
examples/dirty_example/wsgi_app.py:21
↓ 1 callers
Method
get_environ
(self)
gunicorn/workers/ggevent.py:176
↓ 1 callers
Function
get_h2_header_value
Extract a header value from h2 headers list.
tests/test_http2_async_connection.py:373
↓ 1 callers
Method
get_last_response
Get the last response message.
examples/dirty_example/test_worker_integration.py:63
↓ 1 callers
Function
get_negotiated_protocol
Get the negotiated ALPN protocol from an SSL socket. Returns: str: The negotiated protocol name ('h2', 'http/1.1', etc.) or
gunicorn/sock.py:292
↓ 1 callers
Function
get_param
(name, default, type_fn=int)
benchmarks/dirty_bench_wsgi.py:57
↓ 1 callers
Function
get_parser_class
Get the appropriate parser class for the test parameter.
tests/treq_asgi.py:54
↓ 1 callers
Function
get_query_param
Get a query parameter value.
examples/asgi/basic_app.py:98
↓ 1 callers
Function
get_stash_socket_path
Get the stash socket path.
gunicorn/dirty/stash.py:424
↓ 1 callers
Function
get_username
get the username for a user id
gunicorn/util.py:155
↓ 1 callers
Function
get_wsgi_app
(config_uri, name=None, defaults=None)
gunicorn/app/pasterapp.py:14
↓ 1 callers
Method
getsockname
(self)
tests/test_asgi_worker.py:58
↓ 1 callers
Method
halt
halt arbiter
gunicorn/arbiter.py:401
↓ 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:405
↓ 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:208
↓ 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:241
↓ 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.
gunicorn/workers/base_async.py:217
↓ 1 callers
Method
handle_hup
\ HUP handling. - Reload configuration - Start the new worker processes with a new configuration - Gracefully shutdown
gunicorn/arbiter.py:306
↓ 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:172
↓ 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:701
↓ 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:267
↓ 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
← previous
next →
901–1,000 of 4,774, ranked by callers