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
Method
test_murder_pending_closes_expired_connections
Test murder_pending closes connections that have timed out.
tests/test_gthread.py:1867
Method
test_murder_workers_no_timeout_config
Test murder_workers with no timeout configured.
tests/test_dirty_arbiter.py:862
Method
test_murder_workers_sends_sigabrt_first
Verify that murder_workers sends SIGABRT on first timeout.
tests/test_arbiter.py:799
Method
test_murder_workers_sends_sigkill_second
Verify that murder_workers sends SIGKILL on second timeout.
tests/test_arbiter.py:817
Method
test_ndjson_content_type
Test NDJSON has correct content type.
tests/docker/asgi_compliance/test_streaming_compliance.py:166
Method
test_ndjson_format
Test NDJSON line format.
tests/docker/asgi_compliance/test_streaming_compliance.py:172
Method
test_ndjson_streaming
Test NDJSON received as stream.
tests/docker/asgi_compliance/test_streaming_compliance.py:186
Method
test_negative_cl_rejected
Negative Content-Length must be rejected.
tests/test_asgi_parser_validation.py:100
Method
test_negative_content_length
Test handling of negative CONTENT_LENGTH.
tests/test_uwsgi.py:453
Method
test_negative_value_raises
(self)
tests/test_http2_config.py:107
Method
test_negative_value_raises
(self)
tests/test_http2_config.py:137
Method
test_negative_value_raises
(self)
tests/test_http2_config.py:193
Method
test_negative_value_raises
(self)
tests/test_http2_config.py:216
Method
test_nested_path
Test nested path handling.
tests/test_asgi_http_scope.py:148
Method
test_never_chunked
(self)
tests/test_http2_response.py:85
Method
test_never_sendfile
(self)
tests/test_http2_response.py:91
Method
test_next_request_not_blocked
(self, one_connection)
tests/docker/asgi_framework_compat/tests/test_background_tasks.py:46
Function
test_next_request_served_after_worker_stops
(server)
tests/test_gthread_keepalive_shutdown.py:91
Function
test_next_request_served_while_app_still_runs
(http_parser, pipelined)
tests/test_asgi_keepalive_background.py:155
Function
test_no_body
Test request with no body.
tests/test_asgi_uwsgi.py:329
Method
test_no_body_get
GET request has no body.
tests/test_asgi_callback_parser.py:271
Function
test_no_body_response_drops_body_and_warns
(caplog)
tests/test_http.py:495
Function
test_no_body_response_strips_framing
1xx/204 strip Content-Length; HEAD/304 keep app-supplied Content-Length.
tests/test_http.py:476
Function
test_no_body_sendfile_empty_file_does_not_warn
An empty file wrapper has no body bytes to drop, so no warning.
tests/test_http.py:516
Function
test_no_body_sendfile_non_empty_file_warns_once
A non-empty file wrapper really loses bytes, so it still warns once.
tests/test_http.py:533
Method
test_no_body_status_drops_framing_headers
(self)
tests/test_http2_h2c.py:1949
Method
test_no_body_status_drops_the_body
(self, status)
tests/test_asgi_http2_response.py:81
Method
test_no_colon_raises
mod.Class' (no colon) raises DirtyAppError.
tests/test_dirty_app.py:281
Function
test_no_config_reads_per_request
(http_parser)
tests/test_asgi_config_cache.py:64
Method
test_no_content_length
Test when Content-Length is missing.
tests/test_asgi_streaming.py:294
Method
test_no_content_length_in_stream
Test streaming response may not have Content-Length.
tests/docker/asgi_compliance/test_streaming_compliance.py:299
Method
test_no_content_length_with_transfer_encoding
Test Content-Length should not be present with Transfer-Encoding.
tests/test_asgi_streaming.py:572
Function
test_no_continue_when_the_app_answers_first
(http_parser)
tests/test_asgi_expect_continue.py:91
Function
test_no_continue_when_the_body_came_with_the_headers
(http_parser)
tests/test_asgi_expect_continue.py:104
Function
test_no_continue_without_a_body
(http_parser)
tests/test_asgi_expect_continue.py:116
Method
test_no_control_socket_flag
Verify --no-control-socket flag disables control socket.
tests/test_control_socket_integration.py:305
Method
test_no_credit_for_a_body_that_came_over_http1
(self)
tests/test_http2_stream.py:934
Method
test_no_duplicate_transfer_encoding_when_framework_sets_it
Gunicorn should not add Transfer-Encoding if framework already set it. This reproduces the BlackSheep streaming issue where frameworks that
tests/test_asgi_protocol_compat.py:888
Method
test_no_error
(self)
tests/test_http2_errors.py:35
Method
test_no_handshake_for_non_ssl_socket
Test that no handshake is attempted for non-SSL sockets.
tests/test_http2_alpn.py:273
Method
test_no_handshake_when_do_handshake_on_connect_true
Test that do_handshake() is NOT called when do_handshake_on_connect is True.
tests/test_http2_alpn.py:254
Method
test_no_peek_when_h2_not_in_protocols
h2c flag alone is not enough; h2 must be an enabled protocol.
tests/test_http2_h2c.py:96
Method
test_no_priority_for_http1_requests
Test that HTTP/1.1 requests don't have priority extensions.
tests/test_asgi_worker.py:880
Method
test_no_regular_headers
(self)
tests/test_http2_stream.py:594
Method
test_no_subprotocol
Test connection without subprotocol.
tests/docker/asgi_compliance/test_websocket_compliance.py:195
Function
test_no_tracebacks_after_faults
(stack)
tests/docker/stress/test_resilience.py:100
Method
test_no_trailers
(self)
tests/test_http2_request.py:422
Method
test_no_trailers_by_default
(self)
tests/test_http2_response.py:113
Method
test_no_transfer_encoding_when_content_length_set
Gunicorn should not add Transfer-Encoding when Content-Length is present.
tests/test_asgi_protocol_compat.py:1020
Method
test_no_upgrade_header
(self)
tests/test_http2_h2c.py:691
Method
test_no_warning_for_an_ordinary_response
(self)
tests/test_asgi_http2_response.py:98
Method
test_no_write_after_a_failed_send
(self)
tests/test_http2_response.py:130
Method
test_non_ascii_in_request_target_rejected
Raw non-ASCII in the request-target must be a 400 (RFC 9112 3.2, RFC 3986 2), even if the C parser accepted the bytes.
tests/test_asgi_invalid_requests.py:140
Method
test_non_ascii_path_decoding
Test that percent-encoded UTF-8 paths are decoded correctly. Per ASGI spec: - path: percent-decoded UTF-8 string - raw_path:
tests/test_asgi_callback_parser.py:437
Method
test_non_ascii_path_with_query
Test percent-encoded path with query string.
tests/test_asgi_callback_parser.py:459
Method
test_non_ascii_rejected
(self, target)
tests/test_asgi_parser_validation.py:649
Method
test_non_digit_cl_rejected
Content-Length is 1*DIGIT; forms int() alone would take are rejected.
tests/test_asgi_parser_validation.py:113
Method
test_non_generator_returns_response
Test that non-generator method returns regular response.
tests/dirty/test_worker_streaming.py:229
Method
test_non_http_whitespace_rejected
Only SP/HTAB are whitespace around Transfer-Encoding tokens.
tests/test_asgi_parser_validation.py:170
Method
test_non_numeric_cl_rejected
Non-numeric Content-Length must be rejected.
tests/test_asgi_parser_validation.py:125
Method
test_non_numeric_raises
mod:Class:abc' raises DirtyAppError.
tests/test_dirty_app.py:275
Method
test_non_streaming_response_still_works
Test that regular (non-streaming) responses still work.
tests/dirty/test_streaming_integration.py:246
Function
test_non_wsgi_app
(options, capsys)
tests/test_config.py:496
Method
test_none_defaults_to_h1
(self)
tests/test_http2_config.py:56
Method
test_none_protocols_returns_empty
(self)
tests/test_http2_alpn.py:59
Method
test_none_result
Test that None result works correctly.
tests/dirty/test_worker_streaming.py:284
Method
test_normal_close
Test normal close (1000).
tests/docker/asgi_compliance/test_websocket_compliance.py:213
Function
test_normal_response_unaffected
()
tests/test_http.py:554
Method
test_normalize_sockaddr_function_exists
_normalize_sockaddr function should exist.
tests/test_asgi_forwarded_headers.py:319
Method
test_normalize_sockaddr_ipv4
IPv4 address should be normalized.
tests/test_asgi_forwarded_headers.py:325
Method
test_normalize_sockaddr_ipv6
IPv6 address should be normalized.
tests/test_asgi_forwarded_headers.py:332
Method
test_normalize_sockaddr_none
None sockaddr should return None.
tests/test_asgi_forwarded_headers.py:340
Method
test_not_found
Test 404 for unknown path.
tests/docker/asgi_compliance/test_lifespan_compliance.py:158
Method
test_not_found
Test 404 response for unknown paths.
tests/docker/asgi_compliance/test_http_compliance.py:48
Method
test_not_found
Test 404 for non-existent path.
tests/docker/uwsgi/test_uwsgi_integration.py:158
Method
test_not_found
Test 404 response.
tests/docker/http2/test_http2_docker.py:95
Method
test_not_found
Test 404 response.
examples/http2_gevent/test_http2_gevent.py:141
Method
test_not_websocket_missing_connection
Test missing Connection header.
tests/test_asgi_websocket_protocol.py:509
Method
test_not_websocket_missing_upgrade
Test missing Upgrade header.
tests/test_asgi_websocket_protocol.py:497
Method
test_not_websocket_wrong_method
Test non-GET methods are not WebSocket upgrades.
tests/test_asgi_websocket_protocol.py:483
Method
test_not_websocket_wrong_upgrade_value
Test Upgrade header with wrong value.
tests/test_asgi_websocket_protocol.py:522
Method
test_nothing_to_write_does_not_wait_on_the_transport
A flush with no bytes queued must not touch a stalled transport.
tests/test_http2_async_connection.py:1740
Method
test_notify_calls_tmp_notify
Test that notify calls tmp.notify().
tests/test_dirty_worker.py:393
Method
test_notify_calls_tmp_notify
Test that worker.notify() calls tmp.notify() for arbiter monitoring.
tests/test_gthread.py:961
Method
test_notify_exits_on_parent_change
Test that notify exits when parent PID changes.
tests/workers/test_ggevent.py:142
Method
test_notify_updates_tmp_mtime
Test that notify updates the temp file mtime for arbiter heartbeat. WorkerTmp.notify() sets mtime using time.monotonic(), and the arbiter
tests/test_gthread.py:970
Method
test_nul_in_request_target_rejected
Raw NUL in the request-target must be a 400, even if the C parser accepted the bytes: from_parser() is the production backstop.
tests/test_asgi_invalid_requests.py:153
Method
test_null_bytes_in_binary
Test binary message with null bytes.
tests/docker/asgi_compliance/test_websocket_compliance.py:676
Function
test_nworkers_changed
()
tests/test_config.py:390
Method
test_off
(self)
tests/test_http2_h2c.py:300
Method
test_on_dirty_starting_custom
Test setting custom on_dirty_starting hook.
tests/test_dirty_hooks.py:20
Method
test_on_dirty_starting_default
Test on_dirty_starting default is a callable.
tests/test_dirty_hooks.py:15
Method
test_on_dirty_starting_requires_callable
Test that on_dirty_starting requires a callable.
tests/test_dirty_hooks.py:99
Method
test_on_mode_exits_with_boot_error_for_unsupported_app
(self)
tests/test_asgi_lifespan.py:503
Method
test_on_pending_socket_readable_sets_data_ready
Test on_pending_socket_readable marks connection data as ready.
tests/test_gthread.py:1846
Method
test_one_crlf_per_message
The skip resets for each request on a kept-alive connection.
tests/test_asgi_parser_validation.py:635
Method
test_one_crlf_split_across_feeds
(self)
tests/test_asgi_parser_validation.py:623
Function
test_one_empty_line_before_request_line_is_ignored
RFC 9112 2.2, also when the CRLF is split across reads.
tests/test_http.py:686
Method
test_opcode_binary
Test binary frame opcode (0x2).
tests/test_asgi_websocket_protocol.py:44
Method
test_opcode_close
Test close frame opcode (0x8).
tests/test_asgi_websocket_protocol.py:49
← previous
next →
4,201–4,300 of 5,599, ranked by callers