MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions5,599 in github.com/benoitc/gunicorn

↓ 6 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_protocol_http.py:436
↓ 6 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_http.py:425
↓ 6 callersMethod_create_protocol
Create a WebSocketProtocol instance.
tests/test_asgi_websocket_protocol.py:592
↓ 6 callersMethod_create_protocol
Create a WebSocketProtocol instance for testing.
tests/test_asgi_websocket_protocol.py:684
↓ 6 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:447
↓ 6 callersFunction_get_default_control_socket
Get default control socket path based on available directories. Prefers XDG_RUNTIME_DIR if available (standard on Linux, sometimes BSD), fall
gunicorn/config.py:3308
↓ 6 callersMethod_half_close_local
Transition to half-closed (local) state.
gunicorn/http2/stream.py:303
↓ 6 callersMethod_half_close_remote
Transition to half-closed (remote) state.
gunicorn/http2/stream.py:315
↓ 6 callersFunction_make_response
(method="GET", version=(1, 1), sendfile=False)
tests/test_http.py:457
↓ 6 callersMethod_open
(self)
tests/test_http2_async_connection.py:1185
↓ 6 callersMethod_peer_trusted_for_forwarded
Return the (secure_scheme_headers, forwarder_headers) the peer is allowed to set. When the peer's address is not in ``forwarded_allow_ips`` (
gunicorn/http/message.py:211
↓ 6 callersMethod_protocol
(self, mode)
tests/test_http2_h2c.py:943
↓ 6 callersMethod_read_frame
Read a single WebSocket frame. Returns: tuple: (opcode, payload) or None if connection closed
gunicorn/asgi/websocket.py:388
↓ 6 callersMethod_req
(self, headers)
tests/test_http2_h2c.py:675
↓ 6 callersMethod_send
Queue frames on h2 and put them on the wire. Streams are served by concurrent tasks, so encoding and writing happen under one lock wi
gunicorn/http2/async_connection.py:876
↓ 6 callersMethod_send_pending_data
Send whatever h2 already has queued and wait for the transport.
gunicorn/http2/async_connection.py:891
↓ 6 callersMethodclose
Close the pipe file descriptors.
gunicorn/workers/gthread.py:195
↓ 6 callersFunctioncreate_mock_ssl_socket
Create a mock SSL socket for testing ALPN negotiation.
tests/test_http2_alpn.py:15
↓ 6 callersMethodcreate_worker
Helper to create a ThreadWorker for testing.
tests/test_gthread.py:1746
↓ 6 callersFunctiondrain_body
Drain the request body.
tests/docker/asgi_compliance/apps/lifespan_app.py:276
↓ 6 callersMethodencode_message
Encode a message for transmission. Args: data: Dictionary to encode Returns: Length-prefixed JSON b
gunicorn/ctl/protocol.py:42
↓ 6 callersMethodget_extra_info
(self, name, default=None)
tests/test_http2_h2c.py:471
↓ 6 callersFunctionget_short_socket_path
Get a short socket path that won't exceed Unix socket path limits. macOS limits Unix socket paths to ~104 characters, so we use /tmp directly.
tests/test_control_socket_integration.py:141
↓ 6 callersMethodinit
(self)
gunicorn/workers/gthread.py:68
↓ 6 callersMethodinit
Initialize the pipe and queue.
gunicorn/workers/gthread.py:185
↓ 6 callersMethodinit_process
\ If you override this method in a subclass, the last statement in the function should be to call this method with super().ini
gunicorn/workers/base.py:88
↓ 6 callersMethodkill_process
Send a signal to a process in the container.
tests/docker/dirty_arbiter/test_parent_death.py:222
↓ 6 callersMethodkill_worker
Kill a worker by PID.
gunicorn/dirty/arbiter.py:1010
↓ 6 callersFunctionmake_worker
(graceful_timeout=1)
tests/test_asgi_nr_conns_shutdown.py:58
↓ 6 callersMethodnotify
Update heartbeat timestamp.
gunicorn/dirty/worker.py:138
↓ 6 callersFunctionopen_connection
(worker)
tests/test_asgi_nr_conns_shutdown.py:71
↓ 6 callersMethodparser
(self)
gunicorn/config.py:114
↓ 6 callersMethodread
Read data from the stream, using buffered data first. Args: size: Number of bytes to read. If None, returns all buffered
gunicorn/asgi/unreader.py:54
↓ 6 callersMethodread
(self, size=None, read_ahead=None)
tests/test_http.py:573
↓ 6 callersMethodreload
(self)
gunicorn/arbiter.py:530
↓ 6 callersFunctionrequest
Make HTTP request and return JSON response.
examples/dirty_example/test_stash_integration.py:26
↓ 6 callersFunctionsend_signal_to_dirty_arbiter
Send a signal to the dirty arbiter.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:93
↓ 6 callersMethodsend_trailers
Mark trailers as sent and close the stream. Args: trailers: List of (name, value) trailer tuples Raises: HTT
gunicorn/http2/stream.py:231
↓ 6 callersFunctionstart_gunicorn
Start a gunicorn server with specified worker class and control socket.
tests/test_control_socket_integration.py:92
↓ 6 callersMethodstop
Stop all workers.
gunicorn/dirty/arbiter.py:1112
↓ 6 callersMethodstop
(self)
benchmarks/asgi/run.py:163
↓ 6 callersMethodvalidate
Validate pidfile and make it stale if needed
gunicorn/pidfile.py:64
↓ 6 callersMethodwarning
(self, msg, *args, **kwargs)
gunicorn/glogging.py:285
↓ 6 callersMethodworker_pids
(self, service)
tests/docker/stress/conftest.py:148
↓ 6 callersMethodwrite
(self, data)
examples/dirty_example/test_worker_integration.py:45
↓ 6 callersMethodwrite_message_async
Write one message to an async writer. Args: writer: asyncio StreamWriter data: Message dictionary to send
gunicorn/ctl/protocol.py:159
↓ 5 callersMethod__anext__
(self)
gunicorn/dirty/client.py:529
↓ 5 callersMethod_apply_header_policy
Apply per-header policy shared between Python and fast parsers. Mutates ``self._expected_100_continue`` and ``self.scheme`` as needed.
gunicorn/http/message.py:223
↓ 5 callersFunction_build
(kind, raw)
tests/test_asgi_request_build.py:108
↓ 5 callersFunction_build_request_parser
Construct a RequestParser that drains the given bytes.
tests/test_http.py:339
↓ 5 callersMethod_cfg
(self, mode)
tests/test_http2_h2c.py:278
↓ 5 callersFunction_close_codes
Close codes in the frames the server wrote.
tests/test_asgi_websocket_enhanced.py:568
↓ 5 callersMethod_conn
(self, writer, timeout=30)
tests/test_http2_async_connection.py:1641
↓ 5 callersMethod_create_manager
Create a LifespanManager instance.
tests/test_asgi_lifespan.py:391
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:114
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:196
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_http_scope.py:274
↓ 5 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_compliance.py:37
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:103
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:185
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_http_scope.py:263
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:26
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:724
↓ 5 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_compliance.py:869
↓ 5 callersMethod_create_websocket_protocol
Create WebSocketProtocol with mock transport.
tests/test_asgi_protocol_compat.py:307
↓ 5 callersMethod_effective_peername
Return the client address advertised via PROXY protocol if any. Falls back to the transport peername when PROXY protocol is disabled,
gunicorn/asgi/protocol.py:2174
↓ 5 callersMethod_extract_close_code_from_frame
Extract close code from WebSocket close frame.
tests/test_asgi_protocol_compat.py:324
↓ 5 callersMethod_feed_forever
(parser, prefix, n=64)
tests/test_asgi_parser_validation.py:566
↓ 5 callersMethod_get_dirty_pidfile_path
Get the well-known PID file path for orphan detection. Uses self.proc_name (not self.cfg.proc_name) so that during USR2 the new maste
gunicorn/arbiter.py:826
↓ 5 callersMethod_handle_response
Handle response message, extracting result or raising error.
gunicorn/dirty/client.py:166
↓ 5 callersMethod_open
(self, **cfg_values)
tests/test_http2_connection.py:2160
↓ 5 callersMethod_open_get
A served GET on stream 1 over a real socketpair, window held at 0.
tests/test_http2_connection.py:1785
↓ 5 callersFunction_request
(size_line)
tests/test_chunk_extension.py:44
↓ 5 callersMethod_send_body
Send response body chunk. Combines buffered headers with the first body chunk, and with ``last`` the final chunk with the chunked ter
gunicorn/asgi/protocol.py:2239
↓ 5 callersMethod_send_close
Send a close frame.
gunicorn/asgi/websocket.py:613
↓ 5 callersMethod_setup_event_loop
Setup the asyncio event loop.
gunicorn/workers/gasgi.py:54
↓ 5 callersMethod_sock_send
(self, msg)
gunicorn/instrument/statsd.py:131
↓ 5 callersMethod_strip
(self, headers, status)
tests/test_asgi_streaming.py:390
↓ 5 callersMethodapp
(scope, receive, send)
tests/test_http2_h2c.py:1853
↓ 5 callersMethodatoms
Gets atoms for log formatting.
gunicorn/glogging.py:302
↓ 5 callersFunctioncfg_file
()
tests/test_config.py:27
↓ 5 callersMethodclose
(self)
gunicorn/http/wsgi.py:568
↓ 5 callersFunctioncreate_h2_connection
Create an HTTP/2 connection using the h2 library.
examples/http2_features/test_http2.py:32
↓ 5 callersMethodcreate_worker
Create a worker for testing.
tests/test_gthread.py:1372
↓ 5 callersMethoddecode_full
Decode a complete TLV-encoded value, ensuring all data is consumed. Args: data: Binary data to decode Returns:
gunicorn/dirty/tlv.py:284
↓ 5 callersMethoddefer
Queue a callback to be run on the main thread. The callback is added to the queue first, then a wake-up byte is written to the pipe.
gunicorn/workers/gthread.py:212
↓ 5 callersMethodend_stream
Close the sending half of a stream, with trailers if given.
gunicorn/http2/connection.py:683
↓ 5 callersMethodenqueue_req
Submit connection to thread pool for processing.
gunicorn/workers/gthread.py:312
↓ 5 callersMethodfeed
Feed a body chunk directly (called by parser callback).
gunicorn/asgi/protocol.py:387
↓ 5 callersMethodfrom_samples
Calculate statistics from list of latency samples.
benchmarks/dirty_benchmark.py:78
↓ 5 callersFunctionget_dirty_socket_path
Get the dirty socket path.
gunicorn/dirty/client.py:660
↓ 5 callersMethodget_logs
Get container logs.
tests/docker/dirty_arbiter/test_parent_death.py:123
↓ 5 callersFunctionh2_request
Make an HTTP/2 request and return the response.
examples/http2_features/test_http2.py:71
↓ 5 callersFunctionis_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
↓ 5 callersMethodkill_worker
\ Kill a worker :attr pid: int, worker pid :attr sig: `signal.SIG*` value
gunicorn/arbiter.py:799
↓ 5 callersMethodmanage_workers
Maintain the number of dirty workers.
gunicorn/dirty/arbiter.py:915
↓ 5 callersFunctionnormalize_headers
Normalize headers to lowercase names for comparison. H1CProtocol preserves original case, PythonProtocol lowercases.
tests/test_asgi_callback_parser.py:22
↓ 5 callersMethodpop_chunk
Take the next held DATA payload and credit it back to the peer. Returns: bytes: The payload, or None when nothing is held right n
gunicorn/http2/stream.py:347
↓ 5 callersMethodpost_request
(worker, req, environ, resp)
gunicorn/config.py:2082
↓ 5 callersMethodpre_request
(worker, req)
gunicorn/config.py:2065
← previousnext →301–400 of 5,599, ranked by callers