Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
4,571 in github.com/benoitc/gunicorn
⨍
Functions
4,571
◇
Types & classes
1,022
↳
Endpoints
130
↓ 5 callers
Function
get_dirty_socket_path
Get the dirty socket path.
gunicorn/dirty/client.py:667
↓ 5 callers
Method
get_logs
Get container logs.
tests/docker/dirty_arbiter/test_parent_death.py:123
↓ 5 callers
Method
get_request_body
Get the complete request body. Returns: bytes: The request body data
gunicorn/http2/stream.py:293
↓ 5 callers
Function
h2_request
Make an HTTP/2 request and return the response.
examples/http2_features/test_http2.py:71
↓ 5 callers
Method
kill_worker
\ Kill a worker :attr pid: int, worker pid :attr sig: `signal.SIG*` value
gunicorn/arbiter.py:800
↓ 5 callers
Method
manage_workers
Maintain the number of dirty workers.
gunicorn/dirty/arbiter.py:912
↓ 5 callers
Function
normalize_headers
Normalize headers to lowercase names for comparison. H1CProtocol preserves original case, PythonProtocol lowercases.
tests/test_asgi_callback_parser.py:22
↓ 5 callers
Method
read
(self, size=None)
gunicorn/http/unreader.py:19
↓ 5 callers
Method
read_body
Read body chunk asynchronously. Args: size: Maximum bytes to read Returns: bytes: Body data, empty bytes whe
gunicorn/asgi/uwsgi.py:132
↓ 5 callers
Method
read_message_async
Read a complete binary message from async stream. Args: reader: asyncio StreamReader Returns: dict:
gunicorn/dirty/protocol.py:408
↓ 5 callers
Method
reexec
\ Relaunch the master and workers.
gunicorn/arbiter.py:497
↓ 5 callers
Method
run
(self)
examples/when_ready.conf.py:29
↓ 5 callers
Method
run_benchmark
Run a benchmark with specified parameters. Each concurrent worker maintains a persistent connection to the arbiter and makes
benchmarks/dirty_benchmark.py:284
↓ 5 callers
Method
send_informational
Send an informational response (1xx) on a stream. This is used for 103 Early Hints and other 1xx responses. Informational responses a
gunicorn/http2/connection.py:359
↓ 5 callers
Function
send_response
Send a simple HTTP response.
examples/http2_features/http2_app.py:242
↓ 5 callers
Function
split_request_uri
(uri)
gunicorn/util.py:671
↓ 5 callers
Method
to_dict
Serialize error for protocol transmission.
gunicorn/dirty/errors.py:25
↓ 5 callers
Function
validate_string
(val)
gunicorn/config.py:413
↓ 5 callers
Function
wait_for_socket
Wait until Unix socket exists.
tests/test_control_socket_integration.py:60
↓ 5 callers
Method
warmup
Warm up the pool with a few requests.
benchmarks/dirty_benchmark.py:278
↓ 5 callers
Method
write_file
(self, respiter)
gunicorn/http/wsgi.py:525
↓ 4 callers
Method
__anext__
(self)
gunicorn/dirty/client.py:530
↓ 4 callers
Method
_close_socket
Close the socket connection.
gunicorn/dirty/client.py:179
↓ 4 callers
Method
_create_mock_http2_config
Create mock config for HTTP/2.
tests/test_early_hints.py:303
↓ 4 callers
Method
_create_mock_http2_request
Create a mock HTTP/2 request.
tests/test_asgi_http_scope.py:496
↓ 4 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_compat.py:871
↓ 4 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:582
↓ 4 callers
Method
_create_mock_request
Create a mock HTTP request with headers.
tests/test_asgi_header_security.py:172
↓ 4 callers
Method
_create_mock_socket
Create mock socket for HTTP/2.
tests/test_early_hints.py:308
↓ 4 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:485
↓ 4 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:571
↓ 4 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_streaming.py:209
↓ 4 callers
Method
_create_protocol
Create a WebSocketProtocol instance for testing.
tests/test_asgi_websocket_protocol.py:175
↓ 4 callers
Method
_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_enhanced.py:265
↓ 4 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_header_security.py:159
↓ 4 callers
Method
_forbids
(self, status)
tests/test_asgi_streaming.py:437
↓ 4 callers
Method
_get_worker_connection
Get or create connection to a worker.
gunicorn/dirty/arbiter.py:629
↓ 4 callers
Method
_increment_counter
Increment global request counter.
examples/dirty_example/dirty_app.py:256
↓ 4 callers
Method
_make_stream
(self, headers, stream_id=1)
tests/test_http2_request.py:450
↓ 4 callers
Method
_on_message_complete
Callback: request is fully received.
gunicorn/asgi/protocol.py:564
↓ 4 callers
Method
_receive
ASGI receive callable for lifespan.
gunicorn/asgi/lifespan.py:151
↓ 4 callers
Method
_safe_write
Write data to transport, handling connection errors gracefully. Catches exceptions that occur when the client has disconnected: - OSE
gunicorn/asgi/protocol.py:742
↓ 4 callers
Method
_send_close
Send a close frame.
gunicorn/asgi/websocket.py:423
↓ 4 callers
Method
_send_informational
Send an informational response (1xx) such as 103 Early Hints. Args: status: HTTP status code (100-199) headers: List
gunicorn/asgi/protocol.py:1238
↓ 4 callers
Function
bytes_to_str
(b)
gunicorn/util.py:696
↓ 4 callers
Method
check
(self, cfg, sender, sizer, matcher)
tests/treq.py:282
↓ 4 callers
Function
check_server_available
Wait for server to become available.
examples/http2_gevent/test_http2_gevent.py:30
↓ 4 callers
Method
close
(self)
tests/test_dirty_integration.py:48
↓ 4 callers
Function
close_dirty_client
Close the thread-local client (call on worker exit).
gunicorn/dirty/client.py:740
↓ 4 callers
Method
close_on_exec
(self)
gunicorn/glogging.py:413
↓ 4 callers
Method
connect_async
Establish async connection to arbiter. Raises: DirtyConnectionError: If connection fails
gunicorn/dirty/client.py:197
↓ 4 callers
Method
create_worker
Create a worker for testing.
tests/test_gthread.py:416
↓ 4 callers
Method
create_worker
Create a worker for testing.
tests/test_gthread.py:709
↓ 4 callers
Method
create_worker
Create a worker for testing.
tests/test_gthread.py:1057
↓ 4 callers
Method
delete
Delete a key from a table. Args: table: Table name key: Key to delete Returns: True if
gunicorn/dirty/stash.py:221
↓ 4 callers
Method
drain
Wait until transport is writable.
gunicorn/asgi/protocol.py:100
↓ 4 callers
Method
encode_response
Encode a success response message. Args: request_id: Request identifier this responds to result: Result valu
gunicorn/dirty/protocol.py:207
↓ 4 callers
Method
enqueue_req
Submit connection to thread pool for processing.
gunicorn/workers/gthread.py:275
↓ 4 callers
Method
exec
Execute a command in the container.
tests/docker/dirty_arbiter/test_parent_death.py:112
↓ 4 callers
Function
func
(a, b)
tests/test_config.py:210
↓ 4 callers
Function
get_dirty_worker_count
Get the current number of dirty workers.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:80
↓ 4 callers
Method
get_extra_info
(self, name)
tests/test_dirty_worker.py:90
↓ 4 callers
Method
get_files
(self)
gunicorn/reloader.py:36
↓ 4 callers
Method
handle_quit
SIGQUIT handling
gunicorn/arbiter.py:328
↓ 4 callers
Function
is_http2_available
Check if HTTP/2 support is available. Returns: bool: True if the h2 library is installed with minimum required version.
gunicorn/http2/__init__.py:19
↓ 4 callers
Method
is_parent_alive
(self)
gunicorn/workers/sync.py:51
↓ 4 callers
Method
load
(self)
gunicorn/app/base.py:48
↓ 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_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:695
↓ 4 callers
Method
read_body_chunk
Read next body chunk asynchronously for streaming. Returns: bytes: Next chunk of body data, or None if body is complete.
gunicorn/http2/stream.py:301
↓ 4 callers
Method
receive_trailers
Process received trailing headers. Args: trailers: List of (name, value) tuples
gunicorn/http2/stream.py:161
↓ 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/connection.py:493
↓ 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:440
↓ 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/connection.py:537
↓ 4 callers
Method
should_close
(self)
gunicorn/http/wsgi.py:309
↓ 4 callers
Method
should_close
Determine if the connection should be closed after this request.
gunicorn/uwsgi/message.py:227
↓ 4 callers
Method
should_close
(self)
tests/test_early_hints.py:69
↓ 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:878
↓ 4 callers
Method
spawn_worker
(self)
gunicorn/arbiter.py:727
↓ 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:358
↓ 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:92
↓ 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
__new__
(cls, name, bases, attrs)
gunicorn/config.py:264
↓ 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:670
↓ 3 callers
Method
_close_async
Close the async connection.
gunicorn/dirty/client.py:307
↓ 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:140
← previous
next →
301–400 of 4,571, ranked by callers