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
↓ 4 callers
Method
load
(self)
gunicorn/app/base.py:49
↓ 4 callers
Function
load_dirty_apps
Load multiple dirty apps from a list of import paths. Args: import_paths: List of import path strings Returns: dict: Ma
gunicorn/dirty/app.py:281
↓ 4 callers
Function
make_asgi_protocol
(cfg, loop)
tests/test_http2_h2c.py:520
↓ 4 callers
Function
make_request
Build a request message dict. Args: request_id: Unique request identifier (int or str) app_path: Import path of the dirty ap
gunicorn/dirty/protocol.py:655
↓ 4 callers
Function
make_response
Build a success response message dict. Args: request_id: Request identifier this responds to result: Result value Retur
gunicorn/dirty/protocol.py:680
↓ 4 callers
Method
manage_workers
\ Maintain the number of workers by spawning or killing as required.
gunicorn/arbiter.py:694
↓ 4 callers
Method
may_upgrade
False only when the request is known to carry no Upgrade field.
gunicorn/asgi/parser.py:1159
↓ 4 callers
Method
murder_keepalived
Close expired keepalive connections (or all if forced).
gunicorn/workers/gthread.py:352
↓ 4 callers
Method
pause_writing
(self)
gunicorn/asgi/protocol.py:261
↓ 4 callers
Method
readlines
(self, size=None)
gunicorn/http/body.py:328
↓ 4 callers
Method
receive_trailers
Process received trailing headers. Args: trailers: List of (name, value) tuples
gunicorn/http2/stream.py:172
↓ 4 callers
Method
recv
(self, size)
tests/test_http2_connection.py:58
↓ 4 callers
Method
reset
Reset for next request (keepalive).
gunicorn/asgi/parser.py:276
↓ 4 callers
Method
reset
(self)
tests/test_statsd.py:53
↓ 4 callers
Method
resume_writing
(self)
gunicorn/asgi/protocol.py:266
↓ 4 callers
Method
run_k6
(self, config, scenario, extra_env=None, timeout=1200)
tests/docker/stress/conftest.py:125
↓ 4 callers
Method
send_bytes
(self)
tests/treq.py:110
↓ 4 callers
Method
send_data
Send data on a stream. Args: stream_id: The stream ID data: Body data bytes end_stream: Whether this ends
gunicorn/http2/async_connection.py:696
↓ 4 callers
Method
send_trailers
Send trailing headers on a stream. Trailers are headers sent after the response body, commonly used for gRPC status codes, checksums,
gunicorn/http2/async_connection.py:762
↓ 4 callers
Function
sent_data
(conn)
tests/test_http2_response.py:25
↓ 4 callers
Method
should_close
Determine if the connection should be closed after this request.
gunicorn/uwsgi/message.py:234
↓ 4 callers
Method
spawn_dirty_arbiter
\ Spawn the dirty arbiter process. The dirty arbiter manages a separate pool of workers for long-running, blocking operations
gunicorn/arbiter.py:889
↓ 4 callers
Method
wait_closed
(self)
tests/test_dirty_integration.py:51
↓ 4 callers
Method
wait_for_and_dispatch_events
Wait for events and dispatch callbacks.
gunicorn/workers/gthread.py:395
↓ 4 callers
Method
wait_for_data
Wait for data to be available on the socket. Uses selectors to wait for the socket to become readable within the given timeout. This
gunicorn/workers/gthread.py:129
↓ 4 callers
Method
wait_for_no_gunicorn
Wait until no gunicorn processes are running.
tests/docker/dirty_arbiter/test_parent_death.py:243
↓ 3 callers
Method
_aborted
(self, what)
gunicorn/http2/response.py:41
↓ 3 callers
Function
_asgi_response
(http_parser, raw)
tests/test_transfer_encoding.py:55
↓ 3 callers
Function
_base_vars
(method, path, query="", length=0)
tests/test_asgi_uwsgi_protocol.py:103
↓ 3 callers
Method
_build_masked_frame
Build a client-to-server masked WebSocket frame.
tests/test_asgi_protocol_compat.py:673
↓ 3 callers
Method
_cancel_keepalive_timer
Cancel keepalive timer when new request arrives.
gunicorn/asgi/protocol.py:1198
↓ 3 callers
Method
_cfg
(self, mode)
tests/test_http2_h2c.py:714
↓ 3 callers
Function
_chunked_reader
(unreader, field_size=8190, headers=8190 * 32)
tests/test_http.py:578
↓ 3 callers
Method
_close_async
Close the async connection.
gunicorn/dirty/client.py:307
↓ 3 callers
Function
_compose
(*args, **kwargs)
tests/docker/h2spec/conftest.py:21
↓ 3 callers
Method
_conn
(self)
tests/test_http2_async_connection.py:1039
↓ 3 callers
Method
_conn
(self)
tests/test_http2_connection.py:1271
↓ 3 callers
Function
_connection
(http_parser, peer="127.0.0.1", **settings)
tests/test_asgi_config_cache.py:42
↓ 3 callers
Method
_create_mock_http2_request
Create a mock HTTP/2 request with priority.
tests/test_asgi_compliance.py:573
↓ 3 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_compat.py:232
↓ 3 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:38
↓ 3 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_compliance.py:656
↓ 3 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_compat.py:217
↓ 3 callers
Method
_create_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:579
↓ 3 callers
Method
_create_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:656
↓ 3 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:25
↓ 3 callers
Method
_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:65
↓ 3 callers
Method
_create_protocol
Create a WebSocketProtocol with optional subprotocols.
tests/test_asgi_websocket_enhanced.py:144
↓ 3 callers
Method
_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:205
↓ 3 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:562
↓ 3 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_error_handling.py:27
↓ 3 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_error_handling.py:127
↓ 3 callers
Function
_done
(protocol)
tests/test_asgi_config_cache.py:54
↓ 3 callers
Method
_drain
Feed the client what the server wrote since ``since``.
tests/test_http2_connection.py:1326
↓ 3 callers
Method
_feed_callback_parser
Feed data to callback parser, handling parse errors. Returns True if parsing should continue, False if connection was closed.
gunicorn/asgi/protocol.py:1078
↓ 3 callers
Method
_find_line
Return the index of the next CRLF in the buffer, or -1. Only bytes not scanned on a previous call are scanned again, and a buffer tha
gunicorn/asgi/parser.py:512
↓ 3 callers
Function
_get_h1c
Lazily import gunicorn_h1c if available.
tests/treq_asgi.py:42
↓ 3 callers
Method
_handle_http2_connection
Handle an HTTP/2 connection. ``upgrade`` is set when the connection arrives over Upgrade: h2c and carries ``(settings, http1_req, bod
gunicorn/asgi/protocol.py:2327
↓ 3 callers
Function
_handshake
(http_parser, version=b"13", key=KEY)
tests/test_asgi_websocket_handshake.py:20
↓ 3 callers
Method
_http1_buffered
Bytes held for HTTP/1 that the app has not taken yet. The body chunks waiting in the receiver, plus what the pure-Python parser holds
gunicorn/asgi/protocol.py:1146
↓ 3 callers
Function
_ip_in_allow_list
Check if IP address is in the allow list. Args: ip_str: The IP address string to check allow_list: The original allow list (strin
gunicorn/http/message.py:165
↓ 3 callers
Method
_maybe_resume_reading
Resume a reader paused by data_received once the loop caught up. Only the HTTP/1 loop used to resume; an HTTP/2 connection that once
gunicorn/asgi/protocol.py:2446
↓ 3 callers
Method
_open
(self, keepalive=2, timeout=30)
tests/test_http2_connection.py:1957
↓ 3 callers
Method
_orphan_setup
(self, tmp_path, pid="12345")
tests/test_arbiter.py:901
↓ 3 callers
Method
_parser
(self, parser)
tests/test_http2_h2c.py:1000
↓ 3 callers
Function
_pre_request_hook
The pre_request hook to call, or None when calling it would do nothing: the default hook only logs the request at debug level, through a logge
gunicorn/asgi/protocol.py:561
↓ 3 callers
Method
_race
(self, action)
tests/test_http2_async_connection.py:1343
↓ 3 callers
Function
_request
(sock, path)
tests/test_gthread_keepalive_shutdown.py:69
↓ 3 callers
Method
_reset_buffer
Reset buffer for reuse instead of creating new BytesIO.
gunicorn/asgi/unreader.py:36
↓ 3 callers
Function
_reset_code
(events, stream_id=1)
tests/test_http2_live.py:166
↓ 3 callers
Method
_reset_quietly
Queue RST_STREAM for a stream h2 knows about, ignoring a closed one.
gunicorn/http2/connection.py:574
↓ 3 callers
Method
_reset_quietly
Queue RST_STREAM for a stream h2 knows about, ignoring a closed one.
gunicorn/http2/async_connection.py:516
↓ 3 callers
Method
_resets
(self, client, sock, since)
tests/test_http2_connection.py:2174
↓ 3 callers
Function
_run
(headers, msg_type="http.response.start")
tests/test_asgi_response_headers.py:59
↓ 3 callers
Function
_run
(faults_stack, env)
tests/docker/stress/test_faults.py:18
↓ 3 callers
Function
_run_under_load
Start a constant-rate load, fire ``fault`` mid-run, return the k6 result.
tests/docker/stress/test_resilience.py:58
↓ 3 callers
Method
_send
ASGI send callable.
gunicorn/asgi/websocket.py:239
↓ 3 callers
Method
_send_frame
Send a WebSocket frame. Server frames are not masked (RFC 6455).
gunicorn/asgi/websocket.py:584
↓ 3 callers
Function
_serve
(protocol, transport, count)
tests/test_asgi_config_cache.py:32
↓ 3 callers
Function
_serve
(http_parser, app)
tests/test_asgi_response_wire.py:213
↓ 3 callers
Method
_serve
(self, app, mode)
tests/test_asgi_lifespan.py:462
↓ 3 callers
Method
_served_get
(self)
tests/test_http2_connection.py:2114
↓ 3 callers
Method
_shutdown
Initiate async shutdown.
gunicorn/dirty/arbiter.py:341
↓ 3 callers
Method
_start_http1
Commit to HTTP/1.x and replay anything already read. Called straight from connection_made(), and again when h2c sniffing gives up on
gunicorn/asgi/protocol.py:757
↓ 3 callers
Method
_stop_for_fork
Stop server before fork (called by fork handler).
gunicorn/ctl/server.py:147
↓ 3 callers
Method
_v2_header
(fam_proto, addr_payload)
tests/test_asgi_proxy_protocol.py:53
↓ 3 callers
Method
_wake_waiter
Wake up any pending receive() call.
gunicorn/asgi/protocol.py:416
↓ 3 callers
Method
_will_close
Return True when the connection is closed after this response. Single source of truth for the keepalive decision: ``send`` consults it
gunicorn/asgi/protocol.py:1959
↓ 3 callers
Method
_worker_monitor
Periodically check worker health and manage pool.
gunicorn/dirty/arbiter.py:386
↓ 3 callers
Method
abort_stream
Reset a stream, drop it, and tell the peer. Safe on a stream h2 already closed and on a dead socket.
gunicorn/http2/async_connection.py:831
↓ 3 callers
Function
add_toxic
(name, toxic_type, attributes, stream="downstream", toxicity=1.0)
tests/docker/stress/conftest.py:219
↓ 3 callers
Function
app
WSGI application that demonstrates dirty worker integration.
examples/dirty_example/wsgi_app.py:30
↓ 3 callers
Method
can_sendfile
(self)
gunicorn/http/wsgi.py:514
↓ 3 callers
Method
chdir
(self)
gunicorn/app/base.py:84
↓ 3 callers
Method
check_config
Validate configuration for ASGI worker.
gunicorn/workers/gasgi.py:42
↓ 3 callers
Method
close
(self)
gunicorn/workers/workertmp.py:52
↓ 3 callers
Method
close_async
Close the async connection.
gunicorn/dirty/client.py:318
↓ 3 callers
Function
create_worker
Create a test worker for benchmarks.
benchmarks/dirty_streaming.py:124
↓ 3 callers
Method
create_worker
Create a worker for testing.
tests/test_gtornado.py:347
↓ 3 callers
Method
create_worker
Create a worker for testing.
tests/test_asgi_worker.py:172
← previous
next →
501–600 of 5,599, ranked by callers