MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

Methodapp_with_content_length
(scope, receive, send)
tests/test_asgi_protocol_compat.py:1050
Functionapplication
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
Functionapplication
Simple WSGI application.
tests/docker/dirty_arbiter/app.py:12
Functionapplication
Main WSGI application entry point.
tests/docker/uwsgi/app.py:15
Functionapplication
Basic hello world response.
benchmarks/simple_app.py:10
Methodarbiter
Create a DirtyArbiter for testing.
tests/dirty/test_arbiter_signals.py:17
Methodarbiter
Create a DirtyArbiter for testing.
tests/dirty/test_arbiter_signals.py:134
Functionasgi
(scope, receive, send)
tests/docker/stress/apps/stress_app.py:129
Functionasgi
(scope, receive, send)
tests/support/http2_live_app.py:34
Methodasgi_app
(self, scope, receive, send)
tests/test_asgi_worker.py:75
Methodasync_gen
()
tests/dirty/test_streaming_integration.py:380
Methodasync_generate_tokens
()
tests/dirty/test_worker_streaming.py:165
Methodasync_generate_with_error
()
tests/dirty/test_worker_streaming.py:201
Functionasync_h2_client
Create an async HTTP/2 capable client.
tests/docker/http2/conftest.py:193
Functionasync_http_client
Create an async HTTP client.
tests/docker/asgi_compliance/conftest.py:232
Methodasync_worker
Create an AsyncWorker instance for testing.
tests/test_http2_alpn.py:219
Functionauto_int
(_, x)
gunicorn/config.py:42
Functionbackground
Respond, then run a sync background task in the same app call.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:201
Functionbackground
Respond, then run a sync background task in the same app call.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:203
Functionbackground_completed_endpoint
Number of background tasks that ran to completion.
tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:208
Functionbackground_completed_endpoint
Number of background tasks that ran to completion.
tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:210
Methodbind
(self, sock)
gunicorn/sock.py:159
Methodblocking_read
(n)
tests/test_http2_async_connection.py:257
Methodbody_complete
True once END_STREAM (or trailers) arrived for the request.
gunicorn/http2/stream.py:328
Methodbody_later
()
tests/test_http2_h2c.py:1149
Methodbuffered
Bytes received but not yet handed to the app.
gunicorn/asgi/protocol.py:397
Functionbuiltin
(name)
tests/test_pidfile.py:11
Methodburst
()
tests/docker/asgi_compliance/test_concurrency.py:258
Functionbye
(environ, start_response)
examples/multidomainapp.py:28
Functioncached_query
Execute a cached query.
examples/celery_alternative/app.py:327
Methodcached_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
Methodcallback
()
tests/test_gthread.py:195
Methodcan_receive
Check if this stream can receive data.
gunicorn/http2/stream.py:101
Methodcan_send
Check if this stream can send data.
gunicorn/http2/stream.py:109
Methodcan_sendfile
(self)
gunicorn/http2/response.py:35
Methodcan_write_eof
(self)
tests/test_asgi_keepalive_background.py:50
Methodcan_write_eof
(self)
tests/test_asgi_keepalive_smuggling.py:54
Methodcan_write_eof
(self)
tests/test_asgi_nr_conns_shutdown.py:45
Methodcan_write_eof
(self)
benchmarks/asgi/profile_requests.py:100
Functioncerts_dir
Generate and return the certs directory.
tests/docker/asgi_compliance/conftest.py:88
Functioncerts_dir
Generate and return the certs directory.
tests/docker/http2/conftest.py:81
Functioncfg_file_with_wsgi_app
()
tests/test_config.py:31
Methodchanged
(fname)
gunicorn/workers/base.py:125
Functionchat
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
Functionchat_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
Methodcheck
()
tests/test_http2_h2c.py:2073
Methodcheck
Parse request and verify it matches expected values.
tests/treq_asgi.py:203
Methodcheck
Verify parser raises expected exception. Args: cfg: Gunicorn config object expected_exc: Expected WSGI exception clas
tests/treq_asgi.py:286
Methodcheck
(self, cfg)
tests/treq.py:326
Methodcheck_config
(cls, cfg, log)
gunicorn/workers/gthread.py:269
Functioncheck_is_writable
(path)
gunicorn/util.py:614
Functionchild_process
(queue)
examples/frameworks/django/testing/testing/apps/someapp/middleware.py:9
Functionchown
(path, uid, gid)
gunicorn/util.py:179
Methodcleanup_old_files
Cleanup old files - like a Celery periodic task. Equivalent to Celery Beat: @app.task def cleanup():
examples/celery_alternative/tasks.py:509
Functionclear
Delete all entries in a table.
gunicorn/dirty/stash.py:471
Methodclear
Delete all entries in a table. Args: table: Table name
gunicorn/dirty/stash.py:247
Methodclear
(self)
gunicorn/workers/gtornado.py:28
Methodclear_all
Clear all sessions (for testing).
examples/dirty_example/dirty_app.py:261
Functionclient
(server)
tests/test_http2_live.py:182
Functionclose
(sock)
gunicorn/util.py:284
Methodclose
(self)
gunicorn/http2/response.py:69
Methodclose
(self)
tests/test_gtornado.py:41
Methodclose
(self)
tests/test_asgi_worker.py:106
Methodclose
(self)
tests/test_asgi_keepalive_background.py:42
Methodclose
(self)
tests/test_early_hints.py:99
Methodclose
(self)
tests/test_asgi_keepalive_smuggling.py:48
Methodclose
Clean up the counter app.
tests/support_dirty_apps.py:72
Methodclose
Clean up the echo app.
tests/support_dirty_apps.py:137
Methodclose
(self)
tests/test_dirty_worker.py:585
Methodclose
(self)
tests/support_dirty_app.py:37
Methodclose
(self)
tests/support_dirty_app.py:70
Methodclose
(self)
tests/support_dirty_app.py:94
Methodclose
(self)
tests/support_dirty_app.py:130
Methodclose
(self)
tests/support_dirty_app.py:156
Methodclose
(self)
tests/test_asgi_nr_conns_shutdown.py:51
Methodclose
(self)
tests/test_dirty_arbiter.py:413
Methodclose
(self)
tests/test_dirty_arbiter.py:541
Methodclose
(self)
tests/test_dirty_arbiter.py:993
Methodclose
(self)
tests/dirty/test_arbiter_streaming.py:58
Methodclose
(self)
tests/dirty/test_worker_streaming.py:54
Methodclose
(self)
tests/dirty/test_streaming_integration.py:91
Methodclose
(self)
tests/dirty/test_client_streaming.py:259
Methodclose
(self)
tests/dirty/test_client_streaming_async.py:53
Methodclose
(self)
tests/dirty/test_multi_app_routing.py:98
Methodclose
(self)
tests/docker/per_app_allocation/app.py:117
Methodclose
(self)
tests/docker/per_app_allocation/app.py:183
Methodclose
(self)
examples/embedding_service/embedding_app.py:17
Methodclose
Forcibly close the websocket; generally it is preferable to return from the handler method.
examples/websocket/gevent_websocket.py:414
Methodclose
Cleanup on shutdown.
examples/streaming_chat/chat_app.py:134
Methodclose
(self)
examples/dirty_example/dirty_app.py:267
Methodclose
Cleanup on shutdown.
examples/celery_alternative/tasks.py:157
Methodclose
Cleanup on shutdown.
examples/celery_alternative/tasks.py:477
Methodclose
(self)
benchmarks/dirty_streaming.py:78
Methodclose
(self)
benchmarks/dirty_streaming.py:458
Methodclose
Cleanup on shutdown.
benchmarks/dirty_bench_app.py:221
Methodclose_app
(scope, receive, send)
tests/test_asgi_protocol_compat.py:455
Functionclose_dirty_client_async
Close the context-local async client.
gunicorn/dirty/client.py:741
Functionclose_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
Functionclose_on_exec
(fd)
gunicorn/util.py:273
Methodclose_on_exec
(self)
tests/test_dirty_integration.py:139
← previousnext →1,901–2,000 of 5,599, ranked by callers