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
Method
app_with_content_length
(scope, receive, send)
tests/test_asgi_protocol_compat.py:1050
Function
application
WSGI application that invokes dirty apps and returns worker info. Routes: - GET /lightweight/ping - Call LightweightApp.ping() - GET
tests/docker/per_app_allocation/app.py:21
Function
application
Simple WSGI application.
tests/docker/dirty_arbiter/app.py:12
Function
application
Main WSGI application entry point.
tests/docker/uwsgi/app.py:15
Function
application
Basic hello world response.
benchmarks/simple_app.py:10
Method
arbiter
Create a DirtyArbiter for testing.
tests/dirty/test_arbiter_signals.py:17
Method
arbiter
Create a DirtyArbiter for testing.
tests/dirty/test_arbiter_signals.py:134
Function
asgi
(scope, receive, send)
tests/docker/stress/apps/stress_app.py:129
Function
asgi
(scope, receive, send)
tests/support/http2_live_app.py:34
Method
asgi_app
(self, scope, receive, send)
tests/test_asgi_worker.py:75
Method
async_gen
()
tests/dirty/test_streaming_integration.py:380
Method
async_generate_tokens
()
tests/dirty/test_worker_streaming.py:165
Method
async_generate_with_error
()
tests/dirty/test_worker_streaming.py:201
Function
async_h2_client
Create an async HTTP/2 capable client.
tests/docker/http2/conftest.py:193
Function
async_http_client
Create an async HTTP client.
tests/docker/asgi_compliance/conftest.py:232
Method
async_worker
Create an AsyncWorker instance for testing.
tests/test_http2_alpn.py:219
Function
auto_int
(_, x)
gunicorn/config.py:42
Function
background
Respond, then run a sync background task in the same app call.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:201
Function
background
Respond, then run a sync background task in the same app call.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:203
Function
background_completed_endpoint
Number of background tasks that ran to completion.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:208
Function
background_completed_endpoint
Number of background tasks that ran to completion.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:210
Method
bind
(self, sock)
gunicorn/sock.py:159
Method
blocking_read
(n)
tests/test_http2_async_connection.py:257
Method
body_complete
True once END_STREAM (or trailers) arrived for the request.
gunicorn/http2/stream.py:328
Method
body_later
()
tests/test_http2_h2c.py:1149
Method
buffered
Bytes received but not yet handed to the app.
gunicorn/asgi/protocol.py:397
Function
builtin
(name)
tests/test_pidfile.py:11
Method
burst
()
tests/docker/asgi_compliance/test_concurrency.py:258
Function
bye
(environ, start_response)
examples/multidomainapp.py:28
Function
cached_query
Execute a cached query.
examples/celery_alternative/app.py:327
Method
cached_query
Execute a cached query - demonstrates stateful caching. Unlike Celery where you'd use Redis for caching, the dirty worker ma
examples/celery_alternative/tasks.py:429
Method
callback
()
tests/test_gthread.py:195
Method
can_receive
Check if this stream can receive data.
gunicorn/http2/stream.py:101
Method
can_send
Check if this stream can send data.
gunicorn/http2/stream.py:109
Method
can_sendfile
(self)
gunicorn/http2/response.py:35
Method
can_write_eof
(self)
tests/test_asgi_keepalive_background.py:50
Method
can_write_eof
(self)
tests/test_asgi_keepalive_smuggling.py:54
Method
can_write_eof
(self)
tests/test_asgi_nr_conns_shutdown.py:45
Method
can_write_eof
(self)
benchmarks/asgi/profile_requests.py:100
Function
certs_dir
Generate and return the certs directory.
tests/docker/asgi_compliance/conftest.py:88
Function
certs_dir
Generate and return the certs directory.
tests/docker/http2/conftest.py:81
Function
cfg_file_with_wsgi_app
()
tests/test_config.py:31
Method
changed
(fname)
gunicorn/workers/base.py:125
Function
chat
Stream a chat response using Server-Sent Events. The response is streamed token-by-token, simulating LLM inference. Each token is sent as an
examples/streaming_chat/main.py:28
Function
chat_sync
Non-streaming chat endpoint for comparison. Waits for the complete response before returning. Useful for testing or when streaming isn't need
examples/streaming_chat/main.py:65
Method
check
()
tests/test_http2_h2c.py:2073
Method
check
Parse request and verify it matches expected values.
tests/treq_asgi.py:203
Method
check
Verify parser raises expected exception. Args: cfg: Gunicorn config object expected_exc: Expected WSGI exception clas
tests/treq_asgi.py:286
Method
check
(self, cfg)
tests/treq.py:326
Method
check_config
(cls, cfg, log)
gunicorn/workers/gthread.py:269
Function
check_is_writable
(path)
gunicorn/util.py:614
Function
child_process
(queue)
examples/frameworks/django/testing/testing/apps/someapp/middleware.py:9
Function
chown
(path, uid, gid)
gunicorn/util.py:179
Method
cleanup_old_files
Cleanup old files - like a Celery periodic task. Equivalent to Celery Beat: @app.task def cleanup():
examples/celery_alternative/tasks.py:509
Function
clear
Delete all entries in a table.
gunicorn/dirty/stash.py:471
Method
clear
Delete all entries in a table. Args: table: Table name
gunicorn/dirty/stash.py:247
Method
clear
(self)
gunicorn/workers/gtornado.py:28
Method
clear_all
Clear all sessions (for testing).
examples/dirty_example/dirty_app.py:261
Function
client
(server)
tests/test_http2_live.py:182
Function
close
(sock)
gunicorn/util.py:284
Method
close
(self)
gunicorn/http2/response.py:69
Method
close
(self)
tests/test_gtornado.py:41
Method
close
(self)
tests/test_asgi_worker.py:106
Method
close
(self)
tests/test_asgi_keepalive_background.py:42
Method
close
(self)
tests/test_early_hints.py:99
Method
close
(self)
tests/test_asgi_keepalive_smuggling.py:48
Method
close
Clean up the counter app.
tests/support_dirty_apps.py:72
Method
close
Clean up the echo app.
tests/support_dirty_apps.py:137
Method
close
(self)
tests/test_dirty_worker.py:585
Method
close
(self)
tests/support_dirty_app.py:37
Method
close
(self)
tests/support_dirty_app.py:70
Method
close
(self)
tests/support_dirty_app.py:94
Method
close
(self)
tests/support_dirty_app.py:130
Method
close
(self)
tests/support_dirty_app.py:156
Method
close
(self)
tests/test_asgi_nr_conns_shutdown.py:51
Method
close
(self)
tests/test_dirty_arbiter.py:413
Method
close
(self)
tests/test_dirty_arbiter.py:541
Method
close
(self)
tests/test_dirty_arbiter.py:993
Method
close
(self)
tests/dirty/test_arbiter_streaming.py:58
Method
close
(self)
tests/dirty/test_worker_streaming.py:54
Method
close
(self)
tests/dirty/test_streaming_integration.py:91
Method
close
(self)
tests/dirty/test_client_streaming.py:259
Method
close
(self)
tests/dirty/test_client_streaming_async.py:53
Method
close
(self)
tests/dirty/test_multi_app_routing.py:98
Method
close
(self)
tests/docker/per_app_allocation/app.py:117
Method
close
(self)
tests/docker/per_app_allocation/app.py:183
Method
close
(self)
examples/embedding_service/embedding_app.py:17
Method
close
Forcibly close the websocket; generally it is preferable to return from the handler method.
examples/websocket/gevent_websocket.py:414
Method
close
Cleanup on shutdown.
examples/streaming_chat/chat_app.py:134
Method
close
(self)
examples/dirty_example/dirty_app.py:267
Method
close
Cleanup on shutdown.
examples/celery_alternative/tasks.py:157
Method
close
Cleanup on shutdown.
examples/celery_alternative/tasks.py:477
Method
close
(self)
benchmarks/dirty_streaming.py:78
Method
close
(self)
benchmarks/dirty_streaming.py:458
Method
close
Cleanup on shutdown.
benchmarks/dirty_bench_app.py:221
Method
close_app
(scope, receive, send)
tests/test_asgi_protocol_compat.py:455
Function
close_dirty_client_async
Close the context-local async client.
gunicorn/dirty/client.py:741
Function
close_graceful
Close a TCP socket following RFC 9112 section 9.6. Half-closes the write side to send FIN, then lingers on the read side to drain the kernel
gunicorn/util.py:291
Function
close_on_exec
(fd)
gunicorn/util.py:273
Method
close_on_exec
(self)
tests/test_dirty_integration.py:139
← previous
next →
1,901–2,000 of 5,599, ranked by callers