MCPcopy Create free account

hub / github.com/benoitc/gunicorn / functions

Functions4,774 in github.com/benoitc/gunicorn

↓ 2 callersMethodwrite
(self, data)
tests/test_dirty_arbiter.py:34
↓ 1 callersMethod__init__
(self, extra_files=None, interval=1, callback=None)
gunicorn/reloader.py:20
↓ 1 callersMethod__init__
(self, cfg)
gunicorn/glogging.py:183
↓ 1 callersMethod__init__
(self, address, conf, log, fd=None)
gunicorn/sock.py:21
↓ 1 callersMethod__init__
(self, cfg, unreader, peer_addr)
gunicorn/http/message.py:292
↓ 1 callersMethod__init__
(self, cfg, sock, client, server)
gunicorn/workers/gthread.py:46
↓ 1 callersMethod__init__
(self)
tests/test_dirty_integration.py:20
↓ 1 callersMethod__setitem__
(self, key, value)
gunicorn/dirty/stash.py:367
↓ 1 callersMethod_arm_keepalive_timer
Arm keepalive timeout timer after response completion.
gunicorn/asgi/protocol.py:810
↓ 1 callersMethod_async_parse
Async version of parse() - reads data then uses sync parsing.
gunicorn/asgi/uwsgi.py:87
↓ 1 callersMethod_async_read_exact
Read exactly size bytes asynchronously.
gunicorn/asgi/uwsgi.py:111
↓ 1 callersMethod_build_http2_environ
Build minimal environ dict for access logging.
gunicorn/asgi/protocol.py:1992
↓ 1 callersMethod_build_messages
(self)
benchmarks/dirty_streaming.py:432
↓ 1 callersMethod_build_receive_result
Build receive result after waiting for data.
gunicorn/asgi/protocol.py:261
↓ 1 callersFunction_build_worker
(loop, app, http_parser)
tests/test_asgi_keepalive_smuggling.py:87
↓ 1 callersFunction_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 callersFunction_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 callersMethod_check_h1c_protocol_available
Check if H1CProtocol is available (cached at class level).
gunicorn/asgi/protocol.py:470
↓ 1 callersMethod_cleanup
Clean up resources on exit.
gunicorn/workers/gasgi.py:272
↓ 1 callersMethod_connect
Establish connection to arbiter.
gunicorn/dirty/stash.py:114
↓ 1 callersMethod_connect
(self, cfg, peername=TRUSTED_ADDR)
tests/test_http2_h2c.py:845
↓ 1 callersMethod_connect
(self, mode, peername=TRUSTED_ADDR)
tests/test_http2_h2c.py:928
↓ 1 callersMethod_connect_smtp
Establish SMTP connection (simulated for demo).
examples/celery_alternative/tasks.py:57
↓ 1 callersFunction_consume_indented
(lines: List[str], start: int)
scripts/build_settings_doc.py:107
↓ 1 callersFunction_convert_desc
(desc: str)
scripts/build_settings_doc.py:121
↓ 1 callersFunction_convert_refs
(text: str)
scripts/build_settings_doc.py:81
↓ 1 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:169
↓ 1 callersMethod_create_mock_request
Create a mock HTTP request.
tests/test_asgi_forwarded_headers.py:216
↓ 1 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_protocol_compat.py:50
↓ 1 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:158
↓ 1 callersMethod_create_protocol
Create an ASGIProtocol instance for testing.
tests/test_asgi_forwarded_headers.py:205
↓ 1 callersMethod_dispatch
Dispatch command to appropriate handler. Args: message: Request message dict Returns: Response dict
gunicorn/ctl/server.py:288
↓ 1 callersMethod_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:485
↓ 1 callersMethod_execute_command
Execute a parsed command. Args: parts: Command parts (e.g., ["show", "workers"]) Returns: Handler r
gunicorn/ctl/server.py:325
↓ 1 callersMethod_execute_locked
Execute while holding the lock.
gunicorn/dirty/client.py:101
↓ 1 callersMethod_finalize_headers
Called when all headers received. Validates headers for request smuggling vulnerabilities: - Rejects duplicate Content-Length headers
gunicorn/asgi/parser.py:598
↓ 1 callersFunction_format_cli
(setting: guncfg.Setting)
scripts/build_settings_doc.py:51
↓ 1 callersFunction_format_default
(setting: guncfg.Setting)
scripts/build_settings_doc.py:38
↓ 1 callersFunction_format_setting
(setting: guncfg.Setting)
scripts/build_settings_doc.py:195
↓ 1 callersFunction_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:238
↓ 1 callersMethod_get_buffered_data
Get all buffered data and reset buffer.
gunicorn/asgi/unreader.py:42
↓ 1 callersFunction_get_cached_date_header
Get cached Date header, updating once per second.
gunicorn/asgi/protocol.py:126
↓ 1 callersFunction_get_cached_status_line
Get cached status line bytes.
gunicorn/asgi/protocol.py:138
↓ 1 callersMethod_get_control_socket_path
Get the control socket path, making relative paths absolute.
gunicorn/arbiter.py:995
↓ 1 callersMethod_get_gunicorn_handler
(self, log)
gunicorn/glogging.py:424
↓ 1 callersMethod_get_request_id
Generate a unique request ID.
gunicorn/dirty/stash.py:110
↓ 1 callersMethod_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 callersMethod_get_ssl_context
Get SSL context if configured.
gunicorn/workers/gasgi.py:260
↓ 1 callersMethod_get_user
(self, environ)
gunicorn/glogging.py:479
↓ 1 callersMethod_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:752
↓ 1 callersMethod_h2c_feed
Accumulate bytes until the connection preface resolves.
gunicorn/asgi/protocol.py:671
↓ 1 callersMethod_h2c_start
Commit to HTTP/2 and replay the bytes read while undecided.
gunicorn/asgi/protocol.py:692
↓ 1 callersMethod_handle
(self, data)
tests/test_asgi_worker.py:485
↓ 1 callersMethod_handle_close
Handle incoming close frame.
gunicorn/asgi/websocket.py:372
↓ 1 callersMethod_handle_connection
Main request handling loop using callback-based parser. Uses synchronous parsing in data_received(), avoiding the async overhead of p
gunicorn/asgi/protocol.py:914
↓ 1 callersMethod_handle_connection_terminated
Handle ConnectionTerminated event (GOAWAY frame). Args: event: ConnectionTerminated event
gunicorn/http2/connection.py:376
↓ 1 callersMethod_handle_connection_terminated
Handle ConnectionTerminated event.
gunicorn/http2/async_connection.py:354
↓ 1 callersMethod_handle_connection_uwsgi
Handle uWSGI protocol connections (legacy path).
gunicorn/asgi/protocol.py:1015
↓ 1 callersMethod_handle_continuation
Handle continuation frame (already processed in _read_frame).
gunicorn/asgi/websocket.py:390
↓ 1 callersMethod_handle_data_received
Handle DataReceived event. Args: event: DataReceived event with body data Returns: None (request completion
gunicorn/http2/connection.py:303
↓ 1 callersMethod_handle_data_received
Handle DataReceived event.
gunicorn/http2/async_connection.py:299
↓ 1 callersMethod_handle_dirty
Handle 'dirty' commands.
gunicorn/ctl/server.py:404
↓ 1 callersMethod_handle_event
Handle a single h2 event. Args: event: h2 event object Returns: HTTP2Request if a request is complete, None
gunicorn/http2/connection.py:248
↓ 1 callersMethod_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:249
↓ 1 callersMethod_handle_h1c_exception
Handle gunicorn_h1c exceptions with appropriate HTTP status codes. Returns True if the exception was handled, False otherwise.
gunicorn/asgi/protocol.py:627
↓ 1 callersMethod_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:1062
↓ 1 callersMethod_handle_priority_updated
Handle PriorityUpdated event (PRIORITY frame). Args: event: PriorityUpdated event with priority info
gunicorn/http2/connection.py:405
↓ 1 callersMethod_handle_priority_updated
Handle PriorityUpdated event (PRIORITY frame). Args: event: PriorityUpdated event with priority info
gunicorn/http2/async_connection.py:369
↓ 1 callersMethod_handle_proxy_protocol
Handle PROXY protocol detection and parsing. Returns the buffer with proxy protocol data consumed.
gunicorn/http/message.py:685
↓ 1 callersMethod_handle_request_received
Handle RequestReceived event (HEADERS frame). Args: event: RequestReceived event with headers
gunicorn/http2/connection.py:286
↓ 1 callersMethod_handle_request_received
Handle RequestReceived event (HEADERS frame).
gunicorn/http2/async_connection.py:287
↓ 1 callersMethod_handle_show
Handle 'show' commands.
gunicorn/ctl/server.py:360
↓ 1 callersMethod_handle_stream_ended
Handle StreamEnded event. Args: event: StreamEnded event Returns: HTTP2Request for the completed request
gunicorn/http2/connection.py:337
↓ 1 callersMethod_handle_stream_ended
Handle StreamEnded event.
gunicorn/http2/async_connection.py:328
↓ 1 callersMethod_handle_stream_reset
Handle StreamReset event (RST_STREAM frame). Args: event: StreamReset event
gunicorn/http2/connection.py:363
↓ 1 callersMethod_handle_stream_reset
Handle StreamReset event.
gunicorn/http2/async_connection.py:346
↓ 1 callersMethod_handle_trailers_received
Handle TrailersReceived event. Args: event: TrailersReceived event with trailer headers Returns: HTTP2Reques
gunicorn/http2/connection.py:385
↓ 1 callersMethod_handle_trailers_received
Handle TrailersReceived event.
gunicorn/http2/async_connection.py:358
↓ 1 callersMethod_handle_worker
Handle 'worker' commands.
gunicorn/ctl/server.py:382
↓ 1 callersMethod_has_invalid_header_chars
RFC 9110 section 5.5: only VCHAR, SP, HTAB, and obs-text allowed.
gunicorn/asgi/parser.py:862
↓ 1 callersMethod_heartbeat_loop
Periodically update heartbeat.
gunicorn/dirty/worker.py:282
↓ 1 callersFunction_import_h2
Lazily import h2 library components.
gunicorn/http2/connection.py:32
↓ 1 callersFunction_import_h2
Lazily import h2 library components.
gunicorn/http2/async_connection.py:32
↓ 1 callersMethod_is_buffer_full
Check if internal buffer is full (HTTP/2 only).
gunicorn/asgi/protocol.py:786
↓ 1 callersMethod_is_valid_method
Check if method is valid token with conventional restrictions.
gunicorn/asgi/parser.py:837
↓ 1 callersMethod_keepalive_after
Whether the connection can be reused for another request. A body the application did not read leaves bytes on the socket, which would
gunicorn/workers/gthread.py:543
↓ 1 callersMethod_keepalive_timeout
Called when keepalive timeout expires.
gunicorn/asgi/protocol.py:826
↓ 1 callersFunction_logconfig
(path, fmt)
tests/test_logger.py:100
↓ 1 callersFunction_make_early_hints_callback
Create a wsgi.early_hints callback for sending 103 Early Hints. This allows WSGI applications to send 103 Early Hints responses before the fi
gunicorn/http/wsgi.py:119
↓ 1 callersMethod_make_error_app
Create an error ASGI app for syntax errors during reload.
gunicorn/workers/gasgi.py:89
↓ 1 callersMethod_on_headers_complete
Callback: request headers are complete.
gunicorn/asgi/protocol.py:584
↓ 1 callersMethod_pack_message
Pack the message inside ``00`` and ``FF`` As per the dataframing section (5.3) for the websocket spec
examples/websocket/gevent_websocket.py:293
↓ 1 callersMethod_parse_app_specs
Parse all app specifications from config. Populates self.app_specs with parsed information about each app, including the imp
gunicorn/dirty/arbiter.py:121
↓ 1 callersMethod_parse_body
Parse Content-Length delimited body.
gunicorn/asgi/parser.py:720
↓ 1 callersMethod_parse_chunked_body
Parse chunked transfer encoding.
gunicorn/asgi/parser.py:741
↓ 1 callersMethod_parse_duration
Parse wrk duration string (e.g., '12.34ms', '1.23s') to ms.
benchmarks/dirty_benchmark.py:471
↓ 1 callersMethod_parse_event
Parse an SSE event.
tests/docker/asgi_compliance/conftest.py:308
↓ 1 callersMethod_parse_fast
Parse request using fast C parser (gunicorn_h1c >= 0.4.1).
gunicorn/http/message.py:531
↓ 1 callersMethod_parse_headers
Parse headers, return True if headers are complete.
gunicorn/asgi/parser.py:554
↓ 1 callersMethod_parse_messages
Parses for messages in the buffer *buf*. It is assumed that the buffer contains the start character for a message, but that it may c
examples/websocket/gevent_websocket.py:303
← previousnext →701–800 of 4,774, ranked by callers