Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benoitc/gunicorn
/ functions
Functions
4,774 in github.com/benoitc/gunicorn
⨍
Functions
4,774
◇
Types & classes
1,056
↳
Endpoints
130
↓ 1 callers
Method
_parse_proxy_protocol
Parse PROXY protocol header if enabled. Returns True if parsing is complete (or not applicable), False if more data is needed.
gunicorn/asgi/parser.py:289
↓ 1 callers
Method
_parse_proxy_protocol_v1
Parse PROXY protocol v1 (text format). Returns buffer with v1 header consumed.
gunicorn/http/message.py:714
↓ 1 callers
Method
_parse_proxy_protocol_v1
Parse PROXY protocol v1 (text format). Format: PROXY <PROTO> <SRC_ADDR> <DST_ADDR> <SRC_PORT> <DST_PORT>\r\n
gunicorn/asgi/parser.py:314
↓ 1 callers
Method
_parse_proxy_protocol_v2
Parse PROXY protocol v2 (binary format). Returns buffer with v2 header consumed.
gunicorn/http/message.py:775
↓ 1 callers
Method
_parse_proxy_protocol_v2
Parse PROXY protocol v2 (binary format).
gunicorn/asgi/parser.py:385
↓ 1 callers
Method
_parse_python
Parse request using pure Python parser.
gunicorn/http/message.py:619
↓ 1 callers
Method
_parse_request_line
Parse request line, return True if complete.
gunicorn/asgi/parser.py:490
↓ 1 callers
Method
_parse_wrk_output
Parse wrk output to extract metrics.
benchmarks/dirty_benchmark.py:428
↓ 1 callers
Method
_pause_reading
Pause reading from transport due to backpressure.
gunicorn/asgi/protocol.py:792
↓ 1 callers
Function
_proc_fd_count
Number of open fds for a process (Linux /proc).
tests/test_control_socket_integration.py:401
↓ 1 callers
Function
_proc_thread_count
Number of threads for a process (Linux /proc).
tests/test_control_socket_integration.py:406
↓ 1 callers
Method
_query_dirty_workers
Query the dirty arbiter for worker information. Connects to the dirty arbiter socket and sends a status request. Returns:
gunicorn/ctl/handlers.py:516
↓ 1 callers
Method
_read_chunk
Read a chunk of data from the underlying stream.
gunicorn/asgi/unreader.py:107
↓ 1 callers
Method
_read_exact
Read exactly n bytes from internal buffer. Waits for data via the callback-fed buffer instead of StreamReader.
gunicorn/asgi/websocket.py:344
↓ 1 callers
Method
_read_frames
Read and process incoming WebSocket frames.
gunicorn/asgi/websocket.py:214
↓ 1 callers
Method
_read_next_chunk
Read the next message from the stream.
gunicorn/dirty/client.py:417
↓ 1 callers
Method
_read_next_chunk
Read the next message from the stream.
gunicorn/dirty/client.py:564
↓ 1 callers
Method
_recv_exactly
Receive exactly n bytes from a socket. Args: sock: Socket to read from n: Number of bytes to read R
gunicorn/dirty/protocol.py:492
↓ 1 callers
Function
_register_fork_handlers
Register fork handlers once at module level.
gunicorn/ctl/server.py:37
↓ 1 callers
Method
_response_omits_body
Return True when the response MUST NOT have a body (RFC 9110). Applies to HEAD requests and to status codes that semantically carry no body:
gunicorn/asgi/protocol.py:1517
↓ 1 callers
Method
_resume_reading
Resume reading from transport.
gunicorn/asgi/protocol.py:801
↓ 1 callers
Method
_run_async
Main async loop - start server, manage workers.
gunicorn/dirty/arbiter.py:343
↓ 1 callers
Method
_run_async
Main async loop - start server and handle connections.
gunicorn/dirty/worker.py:249
↓ 1 callers
Method
_run_lifespan
Run the ASGI lifespan protocol.
gunicorn/asgi/lifespan.py:124
↓ 1 callers
Method
_send
ASGI send callable.
gunicorn/asgi/websocket.py:132
↓ 1 callers
Method
_send_accept
Send WebSocket handshake accept response.
gunicorn/asgi/websocket.py:172
↓ 1 callers
Method
_send_closing_frame
Sends the closing frame to the client, if required.
examples/websocket/gevent_websocket.py:393
↓ 1 callers
Method
_serve
Main async serving loop.
gunicorn/workers/gasgi.py:161
↓ 1 callers
Method
_serve
Main async server loop.
gunicorn/ctl/server.py:206
↓ 1 callers
Method
_serve_http2_request
Run one HTTP/2 request, answering 500 rather than dropping it.
gunicorn/asgi/protocol.py:1724
↓ 1 callers
Method
_set_body_reader
Set up body state for async reading.
gunicorn/asgi/uwsgi.py:121
↓ 1 callers
Method
_set_handler
(self, log, output, fmt, stream=None)
gunicorn/glogging.py:429
↓ 1 callers
Method
_set_syslog_handler
(self, log, cfg, fmt, name)
gunicorn/glogging.py:453
↓ 1 callers
Method
_setup_callback_parser
Create callback parser based on http_parser setting. Parser selection: - auto: Use H1CProtocol if available (>= 0.4.1) and no incompa
gunicorn/asgi/protocol.py:502
↓ 1 callers
Method
_shutdown
Perform graceful shutdown.
gunicorn/workers/gasgi.py:221
↓ 1 callers
Method
_start_control_server
\ Start the control socket server. The server runs in a background thread and accepts commands via Unix socket.
gunicorn/arbiter.py:1002
↓ 1 callers
Method
_start_request
Send the initial request to the arbiter.
gunicorn/dirty/client.py:396
↓ 1 callers
Method
_start_request
Send the initial request to the arbiter.
gunicorn/dirty/client.py:540
↓ 1 callers
Method
_stop_control_server
\ Stop the control socket server.
gunicorn/arbiter.py:1028
↓ 1 callers
Method
_stream_async_generator
Stream chunks from an asynchronous generator. Args: request_id: Request ID for the messages gen: Async gener
gunicorn/dirty/worker.py:417
↓ 1 callers
Method
_stream_sync_generator
Stream chunks from a synchronous generator. Args: request_id: Request ID for the messages gen: Sync generato
gunicorn/dirty/worker.py:369
↓ 1 callers
Method
_try_h2c_upgrade
Switch to HTTP/2 if this request asks to upgrade. Returns True when the connection has been taken over. Any HTTP/2 bytes the client p
gunicorn/workers/base_async.py:131
↓ 1 callers
Function
_unlink
(filename)
gunicorn/util.py:217
↓ 1 callers
Method
_wait_for_data
Wait for body data to arrive via callback.
gunicorn/asgi/protocol.py:279
↓ 1 callers
Method
_wait_for_disconnect
Wait for connection to close after body is finished. This is needed for ASGI apps (like Django) that call receive() to listen for cli
gunicorn/asgi/protocol.py:308
↓ 1 callers
Method
_wait_for_flow_control_window
Wait for flow control window to become positive. Returns: int: Available window size, or -1 if waiting failed
gunicorn/http2/async_connection.py:455
↓ 1 callers
Method
_wait_for_ready
Wait for gunicorn to be ready and serving requests.
tests/docker/per_app_allocation/test_per_app_e2e.py:101
↓ 1 callers
Function
_waitfor
(func, pathname, waitall=False)
gunicorn/util.py:184
↓ 1 callers
Function
_write_output
(markdown: str)
scripts/build_settings_doc.py:233
↓ 1 callers
Method
add_extra_file
(self, filename)
gunicorn/reloader.py:95
↓ 1 callers
Method
add_option
(self, parser)
gunicorn/config.py:304
↓ 1 callers
Function
alt_cfg_file
()
tests/test_config.py:29
↓ 1 callers
Function
app
(environ, start_response)
examples/bad.py:7
↓ 1 callers
Function
benchmark_asgi_parser
Benchmark ASGI parser.
benchmarks/http_parser_benchmark.py:120
↓ 1 callers
Function
benchmark_concurrent_streams
Benchmark multiple concurrent streams.
benchmarks/dirty_streaming.py:330
↓ 1 callers
Function
benchmark_memory_stability
Check memory stability over many iterations.
benchmarks/dirty_streaming.py:372
↓ 1 callers
Function
benchmark_sync_client_streaming
Benchmark DirtyStreamIterator directly (for comparison with async). Note: This runs the sync iterator within an async context for comparison
benchmarks/dirty_streaming.py:512
↓ 1 callers
Function
benchmark_wsgi_parser
Benchmark WSGI parser.
benchmarks/http_parser_benchmark.py:86
↓ 1 callers
Method
can_write_eof
(self)
tests/test_http2_h2c.py:485
↓ 1 callers
Function
chat_websocket
Chat WebSocket - simple broadcast example.
examples/asgi/websocket_app.py:135
↓ 1 callers
Function
check_dependencies
Check if required tools are available.
benchmarks/run_benchmark.py:27
↓ 1 callers
Method
check_dependencies
Check for available load testing tools.
benchmarks/dirty_benchmark.py:386
↓ 1 callers
Method
child_exit
(server, worker)
gunicorn/config.py:2046
↓ 1 callers
Method
chunk
(self)
gunicorn/http/unreader.py:16
↓ 1 callers
Method
chunk
(self)
gunicorn/http/unreader.py:76
↓ 1 callers
Method
chunk
(self)
gunicorn/http/unreader.py:85
↓ 1 callers
Method
close
Close this stream normally.
gunicorn/http2/stream.py:248
↓ 1 callers
Method
close
Close the body stream.
gunicorn/http2/request.py:83
↓ 1 callers
Method
close
(self)
tests/test_http2_connection.py:63
↓ 1 callers
Method
close
(self)
tests/docker/asgi_compliance/conftest.py:350
↓ 1 callers
Method
close
(self)
examples/dirty_example/dirty_app.py:174
↓ 1 callers
Function
closerange
(fd_low, fd_high)
gunicorn/util.py:328
↓ 1 callers
Function
create_app
(name="World", count=1)
tests/support.py:14
↓ 1 callers
Method
create_worker
Create a worker for testing.
tests/test_gtornado.py:423
↓ 1 callers
Method
critical
(self, msg, *args, **kwargs)
gunicorn/glogging.py:277
↓ 1 callers
Function
data_source
(fname)
tests/t.py:15
↓ 1 callers
Method
decode_hybi
Decode HyBi style WebSocket packets. Returns: {'fin' : 0_or_1, 'opcode' : number, 'mask'
examples/websocket/gevent_websocket.py:191
↓ 1 callers
Method
delete_table
Delete an entire table. Args: table: Table name
gunicorn/dirty/stash.py:292
↓ 1 callers
Method
display
(self)
benchmarks/dirty_streaming.py:186
↓ 1 callers
Method
drain
(self)
tests/test_dirty_worker.py:64
↓ 1 callers
Function
echo_websocket
Echo WebSocket - sends back whatever it receives.
examples/asgi/websocket_app.py:95
↓ 1 callers
Method
encode_manage
Encode a worker management message. Args: request_id: Request identifier op: Management operation (MANAGE_OP
gunicorn/dirty/protocol.py:304
↓ 1 callers
Method
encode_stash
Encode a stash operation message. Args: request_id: Unique request identifier (uint64) op: Stash operation c
gunicorn/dirty/protocol.py:326
↓ 1 callers
Method
encode_status
Encode a status query message. Args: request_id: Request identifier Returns: bytes: Complete messag
gunicorn/dirty/protocol.py:289
↓ 1 callers
Method
ensure
Ensure a table exists (create if not exists). This is idempotent - calling it multiple times is safe. Args: tab
gunicorn/dirty/stash.py:268
↓ 1 callers
Method
error
(self, msg, *args)
tests/ctl/test_server.py:68
↓ 1 callers
Method
error
(self, msg, *args)
examples/dirty_example/test_worker_integration.py:33
↓ 1 callers
Method
error404
(self, environ, start_response)
examples/multiapp.py:39
↓ 1 callers
Method
event_gen
(self)
tests/test_reload.py:96
↓ 1 callers
Method
fileno
(self)
tests/test_gthread.py:32
↓ 1 callers
Method
fileno
(self)
tests/t.py:45
↓ 1 callers
Function
find_free_port
Find a free port to bind to.
tests/test_signal_integration.py:40
↓ 1 callers
Method
finish
Mark parsing complete for EOF handling. Call when no more data will be received. Handles edge cases like chunked encoding without fin
gunicorn/asgi/parser.py:276
↓ 1 callers
Method
fmt_desc
(cls, desc)
gunicorn/config.py:279
↓ 1 callers
Method
force_close
(self)
gunicorn/http/message.py:323
↓ 1 callers
Method
force_close
Force the connection to close after this request.
gunicorn/uwsgi/message.py:85
↓ 1 callers
Method
force_close
Force the connection to close after this request.
gunicorn/http2/request.py:201
↓ 1 callers
Function
format_all
Format show all output for display.
gunicorn/ctl/cli.py:172
↓ 1 callers
Function
format_config
Format config output for display.
gunicorn/ctl/cli.py:142
↓ 1 callers
Function
format_dirty
Format dirty workers output for display.
gunicorn/ctl/cli.py:45
← previous
next →
801–900 of 4,774, ranked by callers