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_accept_close_with_custom_code_full_cycle
Test accept-then-close with custom close code (1008).
tests/test_asgi_protocol_compat.py:508
Method
test_accept_eagain
Test handling of EAGAIN during accept.
tests/test_gthread.py:630
Method
test_accept_econnaborted
Test handling of ECONNABORTED during accept.
tests/test_gthread.py:643
Method
test_accept_key_another_example
Test accept key calculation with another key.
tests/test_asgi_websocket_protocol.py:150
Method
test_accept_key_calculation
Test Sec-WebSocket-Accept key calculation per RFC 6455.
tests/test_asgi_websocket_protocol.py:135
Method
test_accept_sets_accepted_flag
Accepting should set the accepted flag.
tests/test_asgi_websocket_enhanced.py:224
Method
test_accept_success
Test successful connection acceptance.
tests/test_gthread.py:614
Method
test_accept_then_immediate_close_full_cycle
Test full WebSocket lifecycle with immediate close after accept. This simulates Django's CloseConsumer pattern and verifies that both
tests/test_asgi_protocol_compat.py:432
Method
test_accept_with_headers
Accept can include additional headers.
tests/test_asgi_websocket_enhanced.py:236
Method
test_accept_with_subprotocol
Accept with subprotocol should include it in response.
tests/test_asgi_websocket_enhanced.py:178
Method
test_accept_without_subprotocol
Accept without subprotocol should work.
tests/test_asgi_websocket_enhanced.py:168
Function
test_access_log_still_gets_the_request_time
(http_parser)
tests/test_asgi_request_base.py:133
Function
test_access_log_switch_follows_setup
()
tests/test_asgi_config_cache.py:116
Method
test_acknowledge_rejects_non_positive
(self)
tests/test_http2_connection.py:1745
Method
test_add_transfer_encoding_to_headers
Test adding Transfer-Encoding header to response.
tests/test_asgi_streaming.py:560
Method
test_addresses_none
Test when addresses are not available.
tests/test_asgi_http_scope.py:636
Method
test_adds_transfer_encoding_when_not_present
Gunicorn should add Transfer-Encoding for streaming without Content-Length.
tests/test_asgi_protocol_compat.py:957
Method
test_aggregate_count
Test data aggregation with count.
examples/celery_alternative/tests/test_tasks.py:188
Method
test_aggregate_data
Test data aggregation via API.
examples/celery_alternative/tests/test_integration.py:219
Method
test_aggregate_sum
Test data aggregation with sum.
examples/celery_alternative/tests/test_tasks.py:170
Method
test_all_apps_accessible
All configured apps should be accessible.
tests/docker/per_app_allocation/test_per_app_e2e.py:284
Method
test_all_callbacks
Test all callbacks fire in correct order.
tests/test_python_protocol.py:310
Method
test_all_callbacks_fire
All callbacks fire in correct order.
tests/test_asgi_callback_parser.py:382
Method
test_all_close_codes_defined
All standard close codes should be defined.
tests/test_asgi_websocket_enhanced.py:417
Method
test_all_dirty_settings_accessible
Test all dirty settings are accessible.
tests/test_dirty_config.py:93
Method
test_all_http2_settings_accessible
(self)
tests/test_http2_config.py:225
Method
test_all_inherit_from_http2error
(self)
tests/test_http2_errors.py:95
Method
test_all_proxy_headers_preserved
All standard proxy headers should be preserved.
tests/test_asgi_forwarded_headers.py:378
Method
test_all_required_keys_present
All ASGI 3.0 required HTTP scope keys are present.
tests/docker/asgi_framework_compat/tests/test_http_scope.py:152
Function
test_allowed_ip
Test allowed IP succeeds.
tests/test_asgi_uwsgi.py:466
Method
test_allowed_ip_wildcard
Test that wildcard allows any IP.
tests/test_uwsgi.py:269
Method
test_alpn_http11_fallback
Test that server accepts HTTP/1.1 via ALPN.
tests/docker/http2/test_http2_docker.py:233
Method
test_alpn_negotiation
Verify ALPN negotiates h2 protocol.
tests/docker/http2/test_http2_docker.py:221
Function
test_always_use_configured_logger
()
tests/test_config.py:436
Method
test_announced_trailers_never_sent_still_end_the_stream
(self)
tests/test_http2_h2c.py:1925
Function
test_app_config
()
tests/test_config.py:301
Function
test_app_ending_before_accept_gets_http_response
ASGI: a handshake the app never accepts is refused with HTTP.
tests/test_asgi_websocket_enhanced.py:742
Function
test_app_error_after_headers_does_not_poison_hpack
(server, client)
tests/test_http2_live.py:320
Method
test_app_error_handling
Test that errors from app are raised properly.
tests/test_dirty_app.py:186
Method
test_app_exception_during_startup
App exception during startup should be handled.
tests/test_asgi_lifespan.py:280
Method
test_app_exception_is_not_startup_failed
A crashing app may just lack lifespan support, so it is not definite.
tests/test_asgi_lifespan.py:306
Method
test_app_exits_before_startup_complete
App exiting before startup.complete should fail startup.
tests/test_asgi_lifespan.py:320
Method
test_app_failure_mid_stream_answers_500
(self)
tests/test_http2_h2c.py:1642
Method
test_app_maintains_state
Test that app maintains state between calls.
tests/test_dirty_app.py:170
Function
test_app_response_header_error_is_500
A header the application tried to send is the application's fault: 500, not the 400 a malformed request gets.
tests/test_request_line_error.py:40
Method
test_app_sees_disconnect
(self)
tests/test_http2_h2c.py:1243
Method
test_app_supplied_values_win
(self)
tests/test_http2_response.py:167
Method
test_application_close_code
Test application-defined close code (4000+).
tests/docker/asgi_compliance/test_websocket_compliance.py:258
Method
test_application_error_answers_500
(self, parser)
tests/test_http2_h2c.py:2240
Method
test_apps_maintain_separate_state
Test that multiple apps maintain independent state.
tests/dirty/test_multi_app_routing.py:311
Method
test_apps_work_after_scaling
Both apps should work after scaling up and down.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:213
Function
test_arbiter_calls_worker_exit
(mock_os_fork)
tests/test_arbiter.py:140
Method
test_arbiter_config_has_multiple_apps
Test arbiter config correctly stores multiple apps.
tests/dirty/test_multi_app_routing.py:615
Function
test_arbiter_creates_sockets_when_reuse_port_available
( mock_socket, mock_os_fork, create_sockets)
tests/test_arbiter.py:182
Function
test_arbiter_inherits_sockets_when_reuse_port_disabled
( mock_socket, mock_os_fork, create_sockets)
tests/test_arbiter.py:207
Function
test_arbiter_inherits_sockets_when_reuse_port_unavailable
( mock_socket, mock_os_fork, create_sockets)
tests/test_arbiter.py:158
Method
test_arbiter_init_with_dirty_config
Test arbiter initializes with dirty configuration.
tests/test_dirty_integration.py:85
Method
test_arbiter_init_without_dirty_config
Test arbiter initializes without dirty configuration.
tests/test_dirty_integration.py:100
Function
test_arbiter_reap_workers
(mock_os_waitpid)
tests/test_arbiter.py:229
Function
test_arbiter_reexec_limit_child
(fork)
tests/test_arbiter.py:132
Function
test_arbiter_reexec_limit_parent
(fork)
tests/test_arbiter.py:124
Function
test_arbiter_reexec_passing_gunicorn_sockets
(execvpe, fork, getpid)
tests/test_arbiter.py:108
Function
test_arbiter_reexec_passing_systemd_sockets
(execvpe, fork, getpid)
tests/test_arbiter.py:92
Method
test_arbiter_routes_no_workers_error
Test arbiter returns error when no workers for multi-app config.
tests/dirty/test_multi_app_routing.py:587
Function
test_arbiter_stop_child_does_not_unlink_listeners
(close_sockets)
tests/test_arbiter.py:57
Function
test_arbiter_stop_closes_listeners
(close_sockets)
tests/test_arbiter.py:46
Function
test_arbiter_stop_does_not_unlink_systemd_listeners
(close_sockets)
tests/test_arbiter.py:73
Function
test_arbiter_stop_does_not_unlink_when_using_reuse_port
(close_sockets)
tests/test_arbiter.py:81
Function
test_arbiter_stop_parent_does_not_unlink_listeners
(close_sockets)
tests/test_arbiter.py:65
Method
test_arbiter_timeout_response
Test that arbiter returns timeout error when worker doesn't respond.
tests/test_dirty_integration.py:194
Method
test_arrival_credit_failure_is_swallowed
(self)
tests/test_http2_async_connection.py:1273
Method
test_arrival_credit_failure_is_swallowed
(self)
tests/test_http2_connection.py:1771
Method
test_asgi_app_with_disconnect_listener
Test Django-style ASGI app pattern that listens for disconnect. This simulates a real-world scenario where an ASGI app: 1. Reads the
tests/test_asgi_compliance.py:998
Method
test_asgi_lifespan_default
Test default asgi_lifespan value.
tests/test_asgi_worker.py:776
Method
test_asgi_lifespan_validation
Test asgi_lifespan validation.
tests/test_asgi_worker.py:781
Method
test_asgi_loop_default
Test default asgi_loop value.
tests/test_asgi_worker.py:758
Method
test_asgi_loop_validation
Test asgi_loop validation.
tests/test_asgi_worker.py:763
Function
test_asgi_parser
Test invalid HTTP requests with ASGI callback parsers.
tests/test_asgi_invalid_requests.py:62
Function
test_asgi_parser
Test valid HTTP requests with ASGI callback parser.
tests/test_asgi_valid_requests.py:33
Method
test_asgi_path_never_touches_h2_directly
(self)
tests/test_http2_h2c.py:1836
Function
test_asgi_python_rejects_bare_lf
(raw)
tests/test_bare_lf.py:56
Function
test_asgi_python_rejects_transfer_encoding_not_ending_with_chunked
(raw)
tests/test_transfer_encoding.py:95
Method
test_asgi_spec_version_present
Test that spec_version is present in ASGI dict.
tests/test_asgi_compliance.py:89
Method
test_asgi_spec_version_value
Test that spec_version follows semantic versioning.
tests/test_asgi_compliance.py:102
Method
test_asgi_version_is_dict
Test that 'asgi' value is a dictionary.
tests/test_asgi_compliance.py:63
Method
test_asgi_version_present
Test that 'asgi' key is present in HTTP scope.
tests/test_asgi_compliance.py:50
Method
test_asgi_version_value
Test that ASGI version is '3.0'.
tests/test_asgi_compliance.py:76
Function
test_asgi_worker_accepts_chunked_as_final_coding
(http_parser, raw)
tests/test_transfer_encoding.py:121
Function
test_asgi_worker_answers_400
(http_parser, raw)
tests/test_transfer_encoding.py:103
Method
test_async_concurrent_requests
Test concurrent requests with asyncio.
examples/http2_gevent/test_http2_gevent.py:198
Method
test_async_context_manager_connection_error
Test async context manager with connection error.
tests/test_dirty_client.py:107
Method
test_async_fastapi
Test FastAPI with async client.
tests/docker/asgi_compliance/test_framework_integration.py:470
Method
test_async_generator_end_to_end
Test complete flow: async generator -> worker -> arbiter -> client.
tests/dirty/test_streaming_integration.py:166
Method
test_async_generator_error_mid_stream
Test that error during async streaming sends error message.
tests/dirty/test_worker_streaming.py:199
Method
test_async_generator_sends_chunks_and_end
Test that async generator sends chunk messages then end message.
tests/dirty/test_worker_streaming.py:163
Method
test_async_http2_concurrent_streams
Test concurrent HTTP/2 streams.
tests/docker/asgi_compliance/test_http2_asgi.py:307
Method
test_async_http2_mixed_requests
Test mixed request types over HTTP/2.
tests/docker/asgi_compliance/test_http2_asgi.py:325
Method
test_async_http2_streaming
Test async streaming over HTTP/2.
tests/docker/asgi_compliance/test_http2_asgi.py:291
Method
test_async_multiple_streams
Test that multiple concurrent streams work over single HTTP/2 connection. This test verifies that HTTP/2 can handle multiple concurrent reque
examples/http2_gevent/test_http2_gevent.py:218
Method
test_async_read_empty_connection
Test async read on empty connection.
tests/test_dirty_protocol.py:318
← previous
next →
2,801–2,900 of 5,599, ranked by callers