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
↓ 1 callers
Method
__init__
(self, cfg)
gunicorn/glogging.py:183
↓ 1 callers
Method
__init__
(self, address, conf, log, fd=None)
gunicorn/sock.py:21
↓ 1 callers
Method
__init__
(self, cfg, unreader, peer_addr)
gunicorn/http/message.py:297
↓ 1 callers
Method
__init__
(self, cfg, sock, client, server)
gunicorn/workers/gthread.py:52
↓ 1 callers
Method
__init__
(self)
tests/test_dirty_integration.py:20
↓ 1 callers
Method
__init__
(self, data)
tests/test_http.py:225
↓ 1 callers
Method
__init__
(self)
tests/test_asgi_response_wire.py:279
↓ 1 callers
Method
__setitem__
(self, key, value)
gunicorn/dirty/stash.py:367
↓ 1 callers
Method
_acknowledge
Return flow-control credit for ``size`` consumed bytes.
gunicorn/http2/stream.py:359
↓ 1 callers
Method
_async_parse
Async version of parse() - reads data then uses sync parsing.
gunicorn/asgi/uwsgi.py:88
↓ 1 callers
Method
_async_read_exact
Read exactly size bytes asynchronously.
gunicorn/asgi/uwsgi.py:112
↓ 1 callers
Method
_build_http2_environ
Build minimal environ dict for access logging.
gunicorn/asgi/protocol.py:2808
↓ 1 callers
Method
_build_messages
(self)
benchmarks/dirty_streaming.py:432
↓ 1 callers
Method
_build_receive_result
Build receive result after waiting for data.
gunicorn/asgi/protocol.py:483
↓ 1 callers
Function
_called_with_wrong_args
Check whether calling a function raised a ``TypeError`` because the call failed or because something in the function raised the error. :p
gunicorn/util.py:386
↓ 1 callers
Method
_cancel_http2_streams
Stop stream tasks still running when the connection ends.
gunicorn/asgi/protocol.py:2471
↓ 1 callers
Method
_cap_keepalive
Close kept-alive connections by ``deadline`` at the latest. The deque stays sorted by timeout: capping every entry at the same deadli
gunicorn/workers/gthread.py:465
↓ 1 callers
Function
_check_fast_parser
Check if fast C parser is available and should be used. Returns False if: - http_parser='python' is explicitly set - gunicorn_h1c is not
gunicorn/http/message.py:35
↓ 1 callers
Method
_check_h1c_protocol_available
Check if H1CProtocol is available (cached at class level).
gunicorn/asgi/protocol.py:779
↓ 1 callers
Method
_cleanup
Clean up resources on exit.
gunicorn/workers/gasgi.py:279
↓ 1 callers
Method
_client
(self, timeouts)
tests/dirty/test_client_streaming.py:240
↓ 1 callers
Function
_client_close_frame
A masked close frame, as a client sends it (RFC 6455 5.3, 5.5.1).
tests/test_asgi_websocket_enhanced.py:510
↓ 1 callers
Function
_completed
(client)
tests/docker/asgi_framework_compat/tests/test_background_tasks.py:37
↓ 1 callers
Method
_connect
Establish connection to arbiter.
gunicorn/dirty/stash.py:114
↓ 1 callers
Method
_connect
(self, cfg, peername=TRUSTED_ADDR)
tests/test_http2_h2c.py:849
↓ 1 callers
Method
_connect
(self, mode, peername=TRUSTED_ADDR)
tests/test_http2_h2c.py:932
↓ 1 callers
Method
_connect_smtp
Establish SMTP connection (simulated for demo).
examples/celery_alternative/tasks.py:57
↓ 1 callers
Function
_consume_indented
(lines: List[str], start: int)
scripts/build_settings_doc.py:108
↓ 1 callers
Function
_convert_desc
(desc: str)
scripts/build_settings_doc.py:122
↓ 1 callers
Function
_convert_refs
(text: str)
scripts/build_settings_doc.py:82
↓ 1 callers
Method
_count_control_frame
Close the connection when the peer sends control frames at flood rate.
gunicorn/http2/async_connection.py:489
↓ 1 callers
Method
_count_reset
Close the connection when the peer resets streams at flood rate.
gunicorn/http2/connection.py:528
↓ 1 callers
Method
_count_reset
Close the connection when the peer resets streams at flood rate.
gunicorn/http2/async_connection.py:464
↓ 1 callers
Function
_cpu_name
()
benchmarks/asgi/run.py:254
↓ 1 callers
Function
_cpu_seconds
(procs)
benchmarks/asgi/run.py:134
↓ 1 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:169
↓ 1 callers
Method
_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:216
↓ 1 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_compat.py:50
↓ 1 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:158
↓ 1 callers
Method
_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:205
↓ 1 callers
Function
_default_workloads
()
benchmarks/asgi/run.py:104
↓ 1 callers
Method
_dispatch
Dispatch command to appropriate handler. Args: message: Request message dict Returns: Response dict
gunicorn/ctl/server.py:288
↓ 1 callers
Function
_docker_available
()
tests/docker/stress/conftest.py:59
↓ 1 callers
Method
_emit_body
Put body bytes on the wire. The one place body framing happens, so a subclass can frame it differently without reimplementing write()
gunicorn/http/wsgi.py:506
↓ 1 callers
Function
_environment
(root)
benchmarks/asgi/run.py:212
↓ 1 callers
Method
_execute_command
Execute a parsed command. Args: parts: Command parts (e.g., ["show", "workers"]) Returns: Handler r
gunicorn/ctl/server.py:325
↓ 1 callers
Method
_execute_locked
Execute while holding the lock.
gunicorn/dirty/client.py:101
↓ 1 callers
Method
_fill
Hold at least ``size`` bytes, or everything up to the end.
gunicorn/http2/request.py:77
↓ 1 callers
Method
_finalize_headers
Called when all headers received. Validates headers for request smuggling vulnerabilities: - Rejects duplicate Content-Length headers
gunicorn/asgi/parser.py:675
↓ 1 callers
Method
_finish_app_calls
Settle the application calls still running when the loop ends. They run to completion while the connection stays open. Once the peer
gunicorn/asgi/protocol.py:1504
↓ 1 callers
Method
_finish_http2_streams
Tell in-flight streams the peer is gone, then cancel stragglers. Same contract as HTTP/1: the application sees http.disconnect first
gunicorn/asgi/protocol.py:2429
↓ 1 callers
Function
_format_cli
(setting: guncfg.Setting)
scripts/build_settings_doc.py:51
↓ 1 callers
Function
_format_default
(setting: guncfg.Setting)
scripts/build_settings_doc.py:38
↓ 1 callers
Function
_format_setting
(setting: guncfg.Setting)
scripts/build_settings_doc.py:196
↓ 1 callers
Function
_free_port
()
tests/test_asgi_keepalive_timeout.py:25
↓ 1 callers
Function
_free_port
()
tests/test_gthread_keepalive_shutdown.py:30
↓ 1 callers
Function
_free_port
()
tests/test_http2_live.py:42
↓ 1 callers
Function
_free_port
()
tests/test_asgi_keepalive_pipeline.py:34
↓ 1 callers
Function
_free_port
()
tests/test_asgi_connection_close.py:23
↓ 1 callers
Function
_free_port
()
tests/test_asgi_uwsgi_protocol.py:27
↓ 1 callers
Function
_free_port
()
benchmarks/asgi/run.py:110
↓ 1 callers
Function
_generate_cert
()
tests/docker/stress/conftest.py:70
↓ 1 callers
Function
_generate_cert
()
tests/docker/h2spec/conftest.py:27
↓ 1 callers
Function
_get_alpn_protocols
Get ALPN protocol list from configuration. Returns list of ALPN protocol identifiers based on http_protocols setting. Returns empty list if H
gunicorn/sock.py:253
↓ 1 callers
Method
_get_buffered_data
Get all buffered data and reset buffer.
gunicorn/asgi/unreader.py:42
↓ 1 callers
Function
_get_cached_date_header
Get cached Date header, updating once per second.
gunicorn/asgi/protocol.py:272
↓ 1 callers
Function
_get_cached_status_line
Get cached status line bytes; the reason phrase is only looked up the first time a (version, status) pair is seen.
gunicorn/asgi/protocol.py:322
↓ 1 callers
Method
_get_control_socket_path
Get the control socket path, making relative paths absolute.
gunicorn/arbiter.py:1006
↓ 1 callers
Method
_get_gunicorn_handler
(self, log)
gunicorn/glogging.py:433
↓ 1 callers
Method
_get_request_id
Generate a unique request ID.
gunicorn/dirty/stash.py:110
↓ 1 callers
Method
_get_response
Match prompt to a canned response. Args: prompt: User's input prompt Returns: str: Matched response text
examples/streaming_chat/chat_app.py:112
↓ 1 callers
Method
_get_ssl_context
Get SSL context if configured.
gunicorn/workers/gasgi.py:267
↓ 1 callers
Method
_get_user
(self, environ)
gunicorn/glogging.py:488
↓ 1 callers
Function
_gunicorn_protocol
(loop, transport, parser, access_log)
benchmarks/asgi/profile_requests.py:104
↓ 1 callers
Method
_h2c_arm_upgrade
Hand the connection over to HTTP/2 once the request is complete. Runs synchronously, inside data_received(), because that is what stops
gunicorn/asgi/protocol.py:1112
↓ 1 callers
Method
_h2c_feed
Accumulate bytes until the connection preface resolves.
gunicorn/asgi/protocol.py:1025
↓ 1 callers
Method
_h2c_start
Commit to HTTP/2 and replay the bytes read while undecided.
gunicorn/asgi/protocol.py:1046
↓ 1 callers
Method
_handle
(self, data)
tests/test_asgi_worker.py:492
↓ 1 callers
Method
_handle_close
Handle incoming close frame. RFC 6455 section 5.5.1: the body is empty, or a 2-byte code and a UTF-8 reason. A malformed body is answ
gunicorn/asgi/websocket.py:540
↓ 1 callers
Method
_handle_connection_terminated
Handle ConnectionTerminated event (GOAWAY frame). A graceful GOAWAY (NO_ERROR) with streams in flight puts the connection into draini
gunicorn/http2/async_connection.py:447
↓ 1 callers
Method
_handle_connection_uwsgi
Handle uWSGI protocol connections (legacy path).
gunicorn/asgi/protocol.py:1525
↓ 1 callers
Method
_handle_continuation
Handle continuation frame (already processed in _read_frame).
gunicorn/asgi/websocket.py:580
↓ 1 callers
Method
_handle_data_received
Handle DataReceived event. The payload is held on the stream until the application takes it; window credit goes back through acknowle
gunicorn/http2/connection.py:420
↓ 1 callers
Method
_handle_data_received
Handle DataReceived event. The payload is held on the stream until the application takes it; window credit goes back through acknowle
gunicorn/http2/async_connection.py:370
↓ 1 callers
Method
_handle_dirty
Handle 'dirty' commands.
gunicorn/ctl/server.py:404
↓ 1 callers
Method
_handle_event
Handle a single h2 event. Args: event: h2 event object Returns: HTTP2Request if a request is complete, None
gunicorn/http2/connection.py:348
↓ 1 callers
Method
_handle_event
Handle a single h2 event. Args: event: h2 event object Returns: HTTP2Request if a request is complete, None
gunicorn/http2/async_connection.py:298
↓ 1 callers
Method
_handle_h2c_upgrade
Serve an Upgrade: h2c request over HTTP/2. The 101 goes out here rather than in _h2c_arm_upgrade so that nothing can write between it
gunicorn/asgi/protocol.py:1589
↓ 1 callers
Method
_handle_priority_updated
Handle PriorityUpdated event (PRIORITY frame). Args: event: PriorityUpdated event with priority info
gunicorn/http2/connection.py:601
↓ 1 callers
Method
_handle_priority_updated
Handle PriorityUpdated event (PRIORITY frame). Args: event: PriorityUpdated event with priority info
gunicorn/http2/async_connection.py:536
↓ 1 callers
Method
_handle_proxy_protocol
Handle PROXY protocol detection and parsing. Returns the buffer with proxy protocol data consumed.
gunicorn/http/message.py:738
↓ 1 callers
Method
_handle_request_received
Handle RequestReceived event (HEADERS frame). Args: event: RequestReceived event with headers
gunicorn/http2/connection.py:389
↓ 1 callers
Method
_handle_request_received
Handle RequestReceived event (HEADERS frame).
gunicorn/http2/async_connection.py:343
↓ 1 callers
Method
_handle_show
Handle 'show' commands.
gunicorn/ctl/server.py:360
↓ 1 callers
Method
_handle_stream_ended
Handle StreamEnded event. Args: event: StreamEnded event Returns: HTTP2Request for the completed request
gunicorn/http2/connection.py:465
↓ 1 callers
Method
_handle_stream_ended
Handle StreamEnded event.
gunicorn/http2/async_connection.py:421
↓ 1 callers
Method
_handle_stream_reset
Handle StreamReset event.
gunicorn/http2/async_connection.py:436
↓ 1 callers
Method
_handle_trailers_received
Handle TrailersReceived event. Args: event: TrailersReceived event with trailer headers Returns: HTTP2Reques
gunicorn/http2/connection.py:581
↓ 1 callers
Method
_handle_trailers_received
Handle TrailersReceived event.
gunicorn/http2/async_connection.py:523
↓ 1 callers
Method
_handle_worker
Handle 'worker' commands.
gunicorn/ctl/server.py:382
← previous
next →
901–1,000 of 5,599, ranked by callers