MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 1 callersMethodsend_error
Send an error response on a stream. Once the peer has a status the stream is cut off with RST_STREAM(INTERNAL_ERROR) instead: a secon
gunicorn/http2/async_connection.py:808
↓ 1 callersMethodsend_headers
(self)
gunicorn/http2/response.py:48
↓ 1 callersFunctionsend_http_error
Send HTTP error response (for non-WebSocket requests).
tests/docker/asgi_compliance/apps/websocket_app.py:480
↓ 1 callersMethodsend_random
(self)
tests/treq_asgi.py:278
↓ 1 callersFunctionsend_response
Send an HTTP response.
examples/asgi/basic_app.py:71
↓ 1 callersMethodsendfile
(self, respiter)
gunicorn/http/wsgi.py:517
↓ 1 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/django_app/consumers.py:9
↓ 1 callersFunctionserialize_scope
Convert ASGI scope to JSON-serializable dict.
tests/docker/asgi_framework_compat/frameworks/django_app/views.py:17
↓ 1 callersMethodset
(self, val)
gunicorn/config.py:363
↓ 1 callersMethodset_body_reader
Set up the body reader based on CONTENT_LENGTH.
gunicorn/uwsgi/message.py:221
↓ 1 callersMethodset_options
(self, sock, bound=False)
gunicorn/sock.py:42
↓ 1 callersFunctionset_stash_socket_path
Set the global stash socket path (called during initialization).
gunicorn/dirty/stash.py:418
↓ 1 callersFunctionshutdown
Shutdown handler.
tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:35
↓ 1 callersMethodsignal_chld
SIGCHLD signal handler - NO LOGGING, just queue the signal.
gunicorn/arbiter.py:289
↓ 1 callersFunctionsingle
(data)
benchmarks/asgi/report.py:63
↓ 1 callersMethodspawn_workers
\ Spawn new workers as needed. This is where a worker process leaves the main loop of the master process.
gunicorn/arbiter.py:778
↓ 1 callersFunctionstart
(status, headers)
tests/docker/stress/apps/stress_app.py:179
↓ 1 callersFunctionstart
(status=200, headers=())
tests/support/http2_live_app.py:39
↓ 1 callersFunctionstart_gunicorn
Start gunicorn server and return the process.
benchmarks/run_benchmark.py:42
↓ 1 callersFunctionstop_gunicorn
Stop the gunicorn server.
benchmarks/run_benchmark.py:75
↓ 1 callersFunctionstream
()
examples/streaming_chat/main.py:43
↓ 1 callersMethodstream
Stream results from a dirty app action (sync). This method returns an iterator that yields chunks from a streaming response.
gunicorn/dirty/client.py:138
↓ 1 callersMethodtable
Get a dict-like interface to a table. Args: name: Table name Returns: StashTable instance
gunicorn/dirty/stash.py:310
↓ 1 callersMethodtables
List all tables. Returns: List of table names
gunicorn/dirty/stash.py:301
↓ 1 callersFunctiontest_async_communication
Test async protocol over streams.
examples/dirty_example/test_protocol.py:166
↓ 1 callersFunctiontest_binary_data_handling
Test binary data handling - the main advantage of binary protocol.
examples/dirty_example/test_protocol.py:76
↓ 1 callersFunctiontest_combined
Test combined priority and trailers.
examples/http2_features/test_http2.py:203
↓ 1 callersFunctiontest_compute_app
Test the ComputeApp dirty application.
examples/dirty_example/test_dirty_app.py:80
↓ 1 callersFunctiontest_different_prompts
Test that different prompts get different responses.
examples/streaming_chat/test_streaming.py:98
↓ 1 callersFunctiontest_embedding_endpoint
()
examples/embedding_service/test_embedding.py:10
↓ 1 callersFunctiontest_endpoint
Test an endpoint and check for expected key in response.
examples/dirty_example/test_integration.py:25
↓ 1 callersFunctiontest_error_handling
Test error handling in dirty apps.
examples/dirty_example/test_dirty_app.py:116
↓ 1 callersFunctiontest_error_serialization
Test error serialization and deserialization.
examples/dirty_example/test_protocol.py:210
↓ 1 callersFunctiontest_health_endpoint
Test the health check endpoint.
examples/streaming_chat/test_streaming.py:12
↓ 1 callersFunctiontest_http2_connection
Test that HTTP/2 is negotiated.
examples/http2_features/test_http2.py:133
↓ 1 callersFunctiontest_ml_app
Test the MLApp dirty application.
examples/dirty_example/test_dirty_app.py:24
↓ 1 callersFunctiontest_multiple_apps
Test worker with multiple apps loaded.
examples/dirty_example/test_worker_integration.py:217
↓ 1 callersFunctiontest_multiple_streams
Test multiple requests on the same connection.
examples/http2_features/test_http2.py:226
↓ 1 callersFunctiontest_priority
Test stream priority endpoint.
examples/http2_features/test_http2.py:154
↓ 1 callersFunctiontest_protocol_encode_decode
Test protocol encoding and decoding.
examples/dirty_example/test_protocol.py:36
↓ 1 callersFunctiontest_protocol_response
Test response message building.
examples/dirty_example/test_protocol.py:102
↓ 1 callersFunctiontest_socket_communication
Test sync protocol over actual sockets.
examples/dirty_example/test_protocol.py:120
↓ 1 callersFunctiontest_sse_format
Test that SSE format is correct.
examples/streaming_chat/test_streaming.py:120
↓ 1 callersFunctiontest_streaming_chat
Test that chat endpoint streams tokens via SSE.
examples/streaming_chat/test_streaming.py:21
↓ 1 callersFunctiontest_sync_chat
Test the non-streaming chat endpoint.
examples/streaming_chat/test_streaming.py:54
↓ 1 callersFunctiontest_thinking_mode
Test streaming with thinking phase enabled.
examples/streaming_chat/test_streaming.py:70
↓ 1 callersFunctiontest_trailers
Test response trailers.
examples/http2_features/test_http2.py:178
↓ 1 callersFunctiontest_worker_request_handling
Test that a worker can load apps and handle requests.
examples/dirty_example/test_worker_integration.py:68
↓ 1 callersFunctiontest_worker_with_compute_app
Test worker with ComputeApp.
examples/dirty_example/test_worker_integration.py:171
↓ 1 callersFunctiontextSummary
(data)
tests/docker/stress/k6/main.js:29
↓ 1 callersFunctionthresholds
()
tests/docker/stress/k6/lib/checks.js:21
↓ 1 callersMethodtimeout_ctx
(self)
gunicorn/workers/base_async.py:31
↓ 1 callersMethodtimeout_ctx
(self)
tests/test_http2_h2c.py:388
↓ 1 callersFunctionto_bytestring
Converts a string argument to a byte string
gunicorn/util.py:622
↓ 1 callersMethodto_dict
Convert to dictionary for JSON serialization.
benchmarks/dirty_benchmark.py:110
↓ 1 callersFunctionvalidate_file_exists
(val)
gunicorn/config.py:474
↓ 1 callersFunctionvalidate_list_string
(val)
gunicorn/config.py:482
↓ 1 callersFunctionvalidate_string_to_list
(val)
gunicorn/config.py:529
↓ 1 callersFunctionverify
(res, id, status)
tests/docker/stress/k6/lib/checks.js:69
↓ 1 callersFunctionverify_env_vars
()
tests/test_arbiter.py:264
↓ 1 callersFunctionversion
(mod)
benchmarks/asgi/run.py:213
↓ 1 callersMethodwait
Waits for and deserializes messages. Returns a single message; the oldest not yet processed. If the client has already closed the con
examples/websocket/gevent_websocket.py:373
↓ 1 callersFunctionwait_for_app
Wait for the application to be ready.
examples/celery_alternative/tests/test_integration.py:48
↓ 1 callersFunctionwait_for_apps_ready
Poll the given app endpoints until each returns 200. The dirty arbiter rebalances apps across workers asynchronously after TTIN/TTOU signals.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:106
↓ 1 callersMethodwait_for_dirty_arbiter
Wait for a dirty arbiter to be running.
tests/docker/dirty_arbiter/test_parent_death.py:258
↓ 1 callersMethodwait_for_dirty_worker_count
Wait for specific number of dirty workers.
tests/docker/per_app_allocation/test_per_app_e2e.py:176
↓ 1 callersFunctionwait_for_http_service
Wait for an HTTP service to become available.
tests/docker/asgi_compliance/conftest.py:50
↓ 1 callersFunctionwait_for_https_service
Wait for an HTTPS service to become available.
tests/docker/asgi_compliance/conftest.py:62
↓ 1 callersMethodwait_for_process_exit
Wait for a specific process to exit.
tests/docker/dirty_arbiter/test_parent_death.py:229
↓ 1 callersFunctionwait_for_server
Wait until server is accepting connections.
tests/test_signal_integration.py:47
↓ 1 callersFunctionwait_for_service
Wait for a service to become healthy.
tests/docker/asgi_framework_compat/conftest.py:78
↓ 1 callersFunctionwait_for_service
Wait for a service to become available.
tests/docker/http2/conftest.py:49
↓ 1 callersMethodwarning
(self, msg, *args)
examples/dirty_example/test_worker_integration.py:32
↓ 1 callersMethodwhen_ready
(server)
gunicorn/config.py:1943
↓ 1 callersMethodworker_class
(self)
gunicorn/config.py:145
↓ 1 callersFunctionwrite
(sock, data, chunked=False)
gunicorn/util.py:345
↓ 1 callersMethodwrite
(self, data)
tests/test_dirty_worker.py:61
↓ 1 callersMethodwrite
(self, data)
tests/test_asgi_response_wire.py:200
↓ 1 callersMethodwrite
(self, data)
tests/dirty/test_worker_streaming.py:31
↓ 1 callersFunctionwrite_chunk
(sock, data)
gunicorn/util.py:337
↓ 1 callersMethodwrite_eof
(self)
tests/test_http2_h2c.py:490
↓ 1 callersFunctionwrite_nonblock
(sock, data, chunked=False)
gunicorn/util.py:351
↓ 1 callersMethodwritelines
(self, list_of_data)
benchmarks/asgi/profile_requests.py:78
↓ 1 callersMethodwsgi
(self)
tests/test_asgi_worker.py:72
MethodGET
(self)
examples/frameworks/webpyapp.py:17
Method__aenter__
(self)
gunicorn/dirty/client.py:333
Method__aexit__
(self, exc_type, exc_val, exc_tb)
gunicorn/dirty/client.py:337
Method__aiter__
(self)
gunicorn/dirty/client.py:526
Method__call__
(self, frame, event, arg)
gunicorn/debug.py:24
Method__call__
Handle a request from an HTTP worker. Args: action: The action/method name to execute *args: Positional argu
gunicorn/dirty/app.py:110
Method__call__
(self, func)
tests/t.py:28
Method__call__
(self, scope, receive, send)
tests/docker/asgi_framework_compat/frameworks/django_app/asgi.py:32
Method__call__
(self, environ, start_response)
examples/multiapp.py:33
Method__call__
(self, environ, start_response)
examples/multidomainapp.py:13
Method__call__
(self, environ, start_response)
examples/websocket/gevent_websocket.py:40
Method__call__
Dispatch to action methods.
examples/dirty_example/dirty_app.py:44
Method__call__
(self, action, *args, **kwargs)
examples/dirty_example/dirty_app.py:132
Method__call__
(self, action, *args, **kwargs)
examples/dirty_example/dirty_app.py:199
Method__call__
Dispatch to action methods.
examples/celery_alternative/tasks.py:66
Method__call__
(self, action: str, *args, **kwargs)
examples/celery_alternative/tasks.py:187
← previousnext →1,401–1,500 of 5,599, ranked by callers