MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 412 callersMethodget
(self)
tests/test_config.py:120
↓ 343 callersMethodset
(self, name, value)
gunicorn/config.py:81
↓ 219 callersMethodencode
Encode a Python value to TLV binary format. Args: value: Python value to encode (None, bool, int, float,
gunicorn/dirty/tlv.py:53
↓ 176 callersMethoddecode
Decode a TLV-encoded value from binary data. Args: data: Binary data to decode offset: Starting offset in th
gunicorn/dirty/tlv.py:128
↓ 173 callersMethodfeed
Process data, fire callbacks synchronously. Args: data: bytes or bytearray of incoming data Raises: ParseErr
gunicorn/asgi/parser.py:224
↓ 151 callersMethodreceive_data
Process received DATA frame with streaming support. Args: data: Bytes received end_stream: True if END_STREAM flag is
gunicorn/http2/stream.py:143
↓ 105 callersMethodsend_headers
(self)
gunicorn/http/wsgi.py:464
↓ 83 callersMethodget
Get value with default.
gunicorn/dirty/stash.py:384
↓ 82 callersMethod_cleanup_sync
Synchronous cleanup on exit.
gunicorn/dirty/arbiter.py:1135
↓ 76 callersMethodinitiate_connection
Send initial HTTP/2 settings to client. Should be called after the SSL handshake completes and before processing any data.
gunicorn/http2/connection.py:138
↓ 75 callersMethodrecv
(self, n, flags=0)
tests/dirty/test_client_streaming.py:40
↓ 71 callersMethod_build_http_scope
Build ASGI HTTP scope from parsed request.
gunicorn/asgi/protocol.py:1985
↓ 67 callersMethoditems
Iterate over (key, value) pairs.
gunicorn/dirty/stash.py:396
↓ 67 callersMethodread
Read frames until ``until(events)`` is true, EOF, or timeout.
tests/test_http2_live.py:122
↓ 66 callersMethoddata_received
(self, data)
tests/test_asgi_worker.py:488
↓ 65 callersMethodget
(self)
examples/frameworks/tornadoapp.py:16
↓ 64 callersMethodsend_data
Mark data as sent. Args: data: Bytes to send end_stream: True if this completes the response Raises:
gunicorn/http2/stream.py:211
↓ 63 callersFunctionmake_request
Create a request message. Args: request_id: Unique request identifier command: Command name (e.g., "show workers") a
gunicorn/ctl/protocol.py:172
↓ 62 callersFunctionuri
(data)
tests/treq.py:24
↓ 62 callersFunctionwebsocket_connect
Factory for creating WebSocket connections.
tests/docker/asgi_compliance/conftest.py:257
↓ 60 callersMethodreceive_data
Process received data and return new requests. A request is returned as soon as its headers are in; its body is read from the stream
gunicorn/http2/connection.py:213
↓ 58 callersMethodexists
Check if a table or key exists. Args: table: Table name key: Optional key to check within the table
gunicorn/dirty/stash.py:279
↓ 52 callersFunctionMockConfig
Real gunicorn configuration with the HTTP/2 defaults these tests want. HTTP2Request applies the same header policy as HTTP/1, which reads for
tests/test_http2_connection.py:35
↓ 51 callersMethodrun
()
tests/t.py:29
↓ 48 callersMethodget_sent_data
(self)
tests/test_http2_connection.py:69
↓ 48 callersMethodsend
(self, data)
tests/t.py:61
↓ 42 callersMethodwait
(self, timeout)
gunicorn/workers/sync.py:32
↓ 41 callersFunctionMockConfig
Real gunicorn configuration with the HTTP/2 defaults these tests want. HTTP2Request applies the same header policy as HTTP/1, which reads for
tests/test_http2_async_connection.py:34
↓ 41 callersMethodwrite
(self, arg)
gunicorn/http/wsgi.py:474
↓ 40 callersMethodset_data
(self, data)
tests/test_http2_async_connection.py:62
↓ 38 callersMethodclose
(self)
tests/test_http2_h2c.py:481
↓ 38 callersMethodclose
(self)
tests/test_http2_live.py:149
↓ 38 callersMethodinitiate_connection
Send initial HTTP/2 settings to client. Should be called after the SSL handshake completes and before processing any data.
gunicorn/http2/async_connection.py:132
↓ 37 callersMethoddebug
(self, msg, *args, **kwargs)
gunicorn/instrument/statsd.py:68
↓ 37 callersFunctionh2c_config
()
tests/test_http2_h2c.py:65
↓ 36 callersMethodaccept
(self, listener)
gunicorn/workers/sync.py:26
↓ 36 callersFunctioncreate_client_connection
Create an h2 client connection for generating test frames.
tests/test_http2_connection.py:76
↓ 35 callersMethod_send
ASGI send callable for lifespan.
gunicorn/asgi/lifespan.py:169
↓ 35 callersMethodpatch
(self)
gunicorn/workers/ggevent.py:37
↓ 34 callersFunctionMockConfig
Real gunicorn configuration. HTTP2Request applies the same header policy as HTTP/1, which reads forwarded_allow_ips, header_map and friends,
tests/test_http2_request.py:24
↓ 34 callersFunctionmake_chunk_message
Build a chunk message dict for streaming responses. Args: request_id: Request identifier this chunk belongs to data: Chunk d
gunicorn/dirty/protocol.py:728
↓ 34 callersMethodread
(self, size=None)
gunicorn/http/body.py:272
↓ 34 callersMethodreceive_data
Receive data and return completed requests. Args: timeout: Optional timeout in seconds for read operation Returns:
gunicorn/http2/async_connection.py:203
↓ 34 callersMethodreceive_headers
Process received HEADERS frame. Args: headers: List of (name, value) tuples end_stream: True if END_STREAM flag is se
gunicorn/http2/stream.py:116
↓ 31 callersMethodadd
(self, name, iterations, duration, chunks=None, bytes_total=None, memory_start=None, memory_end=No
benchmarks/dirty_streaming.py:167
↓ 31 callersMethoddecode_message
Decode a message from bytes. Args: data: Raw bytes (length prefix + JSON payload) Returns: Decoded
gunicorn/ctl/protocol.py:57
↓ 31 callersMethodinit
(self, parser, opts, args)
tests/test_config.py:53
↓ 30 callersFunctionget_parser_class
Get the appropriate parser class for the test parameter.
tests/test_asgi_callback_parser.py:14
↓ 30 callersMethodinfo
Get information about a table. Args: table: Table name Returns: Dict with table info (size, etc.)
gunicorn/dirty/stash.py:256
↓ 30 callersMethodkeys
Get all keys, optionally filtered by pattern.
gunicorn/dirty/stash.py:388
↓ 30 callersMethodload_apps
Load all configured dirty apps.
gunicorn/dirty/worker.py:210
↓ 30 callersFunctionmake_end_message
Build an end-of-stream message dict. Args: request_id: Request identifier this ends Returns: dict: End message dict
gunicorn/dirty/protocol.py:746
↓ 29 callersFunctionasync_http_client_factory
Factory for creating async HTTP clients.
tests/docker/asgi_compliance/conftest.py:240
↓ 29 callersMethodconnection_made
Called when a connection is established.
gunicorn/asgi/protocol.py:703
↓ 29 callersFunctioncreate_client_connection
Create an h2 client connection for generating test frames.
tests/test_http2_async_connection.py:99
↓ 28 callersMethodexception
(self, msg, *args, **kwargs)
gunicorn/instrument/statsd.py:59
↓ 28 callersMethodget
(self)
gunicorn/config.py:360
↓ 28 callersMethodsendall
(self, data)
tests/test_early_hints.py:82
↓ 27 callersMethod_cleanup
Clean up resources on shutdown.
gunicorn/dirty/worker.py:502
↓ 27 callersMethodfeed_data
Feed incoming data from the parent protocol's data_received(). Args: data: bytes received on the connection
gunicorn/asgi/websocket.py:130
↓ 27 callersMethodget_written_data
(self)
tests/test_http2_async_connection.py:92
↓ 26 callersMethodflush
(self)
tests/test_http2_live.py:110
↓ 26 callersMethodunlink
delete pidfile
gunicorn/pidfile.py:53
↓ 24 callersMethodclose
(self)
tests/docker/asgi_compliance/conftest.py:320
↓ 24 callersMethodconnection_lost
Called when the connection is lost or closed. Instead of immediately cancelling the task, we signal a disconnect event and send an ht
gunicorn/asgi/protocol.py:1211
↓ 24 callersMethodwarning
(self, msg, *args, **kwargs)
gunicorn/instrument/statsd.py:55
↓ 23 callersMethodclear
(self)
tests/test_http2_async_connection.py:95
↓ 23 callersMethoddata_received
Called when data is received on the connection.
gunicorn/asgi/protocol.py:999
↓ 23 callersMethodrecv
(self, length=None)
tests/t.py:51
↓ 22 callersMethodbind
(self, sock)
gunicorn/sock.py:74
↓ 22 callersMethodcleanup_stream
Remove a stream after processing is complete. A response the application never finished is cut off with RST_STREAM(INTERNAL_ERROR). A
gunicorn/http2/connection.py:1000
↓ 22 callersMethodclose
(self)
tests/test_gthread.py:50
↓ 22 callersMethoddecode_header
Decode the 16-byte message header. Args: data: 16 bytes of header data Returns: tuple: (msg_type, r
gunicorn/dirty/protocol.py:131
↓ 22 callersMethodfrom_parser
Build request from callback parser state. Args: parser: H1CProtocol or PythonProtocol instance is_ssl: Whether connec
gunicorn/asgi/parser.py:1036
↓ 22 callersMethodparse
(self, unreader)
gunicorn/http/message.py:331
↓ 22 callersMethodreset_stream
Reset a stream with RST_STREAM. Args: stream_id: The stream ID to reset error_code: HTTP/2 error code (default: CANCE
gunicorn/http2/connection.py:935
↓ 22 callersMethodwrite
(self, data)
tests/test_http2_h2c.py:478
↓ 21 callersFunction_post_headers
(client, stream_id, path, end_stream=False)
tests/test_http2_h2c.py:1406
↓ 21 callersMethodclose
(self, graceful=False)
gunicorn/workers/gthread.py:160
↓ 21 callersFunctionmake_uwsgi_packet
Create uWSGI packet for testing. Args: vars_dict: Dict of WSGI environ variables modifier1: Packet type (0 = WSGI request)
tests/test_uwsgi.py:22
↓ 21 callersMethodsend_response
Send a response on a stream. Args: stream_id: The stream ID to respond on status: HTTP status code (int)
gunicorn/http2/connection.py:692
↓ 21 callersMethodsend_response_headers
Send response headers on a stream without ending it. Returns False if the stream is already gone. Split out of send_response() so a r
gunicorn/http2/connection.py:649
↓ 20 callersMethodcreate
(self, pid)
gunicorn/pidfile.py:21
↓ 20 callersFunctionmake_response
(method="GET", status="200 OK", headers=None, cfg=None)
tests/test_http2_response.py:15
↓ 20 callersMethodput
Store a value in a table. The table is automatically created if it doesn't exist. Args: table: Table name
gunicorn/dirty/stash.py:191
↓ 20 callersFunctionvalidate_callable
(arity)
gunicorn/config.py:546
↓ 19 callersFunction_asgi_h2_session
An ASGIProtocol on a fake transport with an h2 client aimed at it.
tests/test_http2_h2c.py:1372
↓ 19 callersFunction_asgi_h2_teardown
(loop, proto)
tests/test_http2_h2c.py:1399
↓ 19 callersMethod_execute_on_worker
Execute request on a specific worker (called by consumer). Handles both regular responses and streaming (chunk-based) responses.
gunicorn/dirty/arbiter.py:526
↓ 19 callersMethod_send_pending_data
Send any pending data from h2 to the socket.
gunicorn/http2/connection.py:985
↓ 19 callersMethoderror
(self, msg, *args, **kwargs)
gunicorn/instrument/statsd.py:51
↓ 19 callersMethodsetblocking
(self, blocking)
tests/test_gthread.py:35
↓ 18 callersFunction_build_worker
(loop, app, http_parser)
tests/test_asgi_keepalive_smuggling.py:88
↓ 18 callersMethod_encode_from_dict
Encode a message dict to binary format. Supports the old dict-based API for backwards compatibility. Args: mess
gunicorn/dirty/protocol.py:576
↓ 18 callersMethodstart
\ Initialize the arbiter. Start listening and set pidfile if needed.
gunicorn/arbiter.py:165
↓ 18 callersMethodstream
Stream SSE events from URL.
tests/docker/asgi_compliance/conftest.py:298
↓ 17 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_compliance.py:138
↓ 17 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:127
↓ 17 callersMethod_h2c_cancel_timer
(self)
gunicorn/asgi/protocol.py:1073
↓ 17 callersMethodgetsockname
(self)
tests/test_gthread.py:53
next →1–100 of 5,599, ranked by callers