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
Function
test_invalid_extension_rejected_asgi
(size_line)
tests/test_chunk_extension.py:76
Function
test_invalid_extension_rejected_gunicorn_h1c
(name)
tests/test_chunk_extension.py:82
Function
test_invalid_extension_rejected_wsgi
(size_line)
tests/test_chunk_extension.py:70
Function
test_invalid_frames_fail_the_connection
(frames, code)
tests/test_asgi_websocket_enhanced.py:709
Method
test_invalid_header
Test invalid header (no colon).
tests/test_python_protocol.py:242
Function
test_invalid_http_version_error
()
tests/test_http.py:334
Method
test_invalid_json_body
Test handling of invalid JSON body.
tests/docker/asgi_compliance/test_http_compliance.py:519
Method
test_invalid_path
Test request to non-existent path.
tests/docker/http2/test_http2_docker.py:267
Method
test_invalid_protocol
(self)
tests/test_http2_config.py:61
Method
test_invalid_request_line
Test invalid request line.
tests/test_python_protocol.py:235
Function
test_invalid_response_header_value_not_in_error
The error names the header but never carries its value, which may be sensitive (a cookie, a token).
tests/test_http.py:864
Method
test_invalid_status_code
Test invalid status code returns 400.
tests/docker/asgi_compliance/test_http_compliance.py:117
Method
test_invalid_te_with_cl_rejected
Invalid T-E value combined with CL must be rejected.
tests/test_asgi_parser_validation.py:56
Method
test_invalid_type
(self)
tests/test_http2_config.py:68
Method
test_invalid_type_list
(self)
tests/test_http2_config.py:74
Method
test_invalid_utf8_path
Test that invalid UTF-8 sequences use replacement character.
tests/test_asgi_callback_parser.py:475
Method
test_invalid_uwsgi_header_str
(self)
tests/test_uwsgi.py:399
Method
test_ipv4_addresses
Test IPv4 server and client addresses.
tests/test_asgi_http_scope.py:594
Method
test_ipv6_addresses
Test IPv6 server and client addresses.
tests/test_asgi_http_scope.py:608
Method
test_ipv6_host_header_accepted
IPv6 Host header should be accepted.
tests/test_asgi_header_security.py:327
Method
test_is_client_stream_odd_ids
(self)
tests/test_http2_stream.py:75
Function
test_is_ipv6
(test_input, expected)
tests/test_util.py:53
Method
test_is_server_stream_even_ids
(self)
tests/test_http2_stream.py:82
Method
test_iter
(self)
tests/test_http2_request.py:100
Function
test_iter_unreader_chunk
()
tests/test_http.py:185
Method
test_json_message
Test JSON in text message.
tests/docker/asgi_compliance/test_websocket_compliance.py:685
Method
test_keep_alive_disabled
Test that keep-alive is disabled when keepalive <= 0.
tests/test_gtornado.py:497
Method
test_keep_alive_enabled
Test that keep-alive is enabled when keepalive > 0.
tests/test_gtornado.py:481
Method
test_keep_alive_stress
Test keep-alive under stress.
tests/docker/asgi_compliance/test_concurrency.py:234
Function
test_keepalive_after_a_normal_response
(http_parser)
tests/test_asgi_request_base.py:57
Function
test_keepalive_disabled_is_announced
(tmp_path)
tests/test_asgi_connection_close.py:89
Method
test_keepalive_gate_refuses_after_receive_timeout
The keepalive completion check must NOT treat a receive-timeout as a framed-complete message: residual body bytes on the wire would be
tests/test_asgi_disconnect.py:316
Function
test_keepalive_refused_when_first_body_is_partial
Two pipelined requests on the same connection. The first POST advertises Content-Length: 100 but the client only sends 10 body bytes. The ap
tests/test_asgi_keepalive_smuggling.py:121
Function
test_keepalive_serves_multiple_on_one_worker
(server)
tests/test_asgi_uwsgi_protocol.py:127
Function
test_keepalive_timeout_close_decrements_nr_conns
The keepalive path closes server-side too and must stay balanced.
tests/test_asgi_nr_conns_shutdown.py:106
Method
test_keepalive_timeout_ordering
Test that connections are ordered by timeout for efficient murder.
tests/test_gthread.py:746
Method
test_keepalive_timeout_uses_monotonic
Test that timeout uses monotonic clock.
tests/test_gthread.py:925
Method
test_keepalive_timer_can_be_armed
Keepalive timer should be arm-able.
tests/test_asgi_error_handling.py:296
Function
test_keepalive_timer_waits_for_app
(http_parser)
tests/test_asgi_keepalive_background.py:279
Function
test_keyfile
()
tests/test_ssl.py:16
Method
test_kill_worker_no_process
Test kill_worker when process doesn't exist.
tests/test_dirty_arbiter.py:837
Method
test_kill_worker_sends_signal
Verify that kill_worker sends the specified signal.
tests/test_arbiter.py:788
Function
test_large_body_with_content_length_is_not_copied
(http_parser)
tests/test_asgi_response_wire.py:232
Function
test_large_chunk_is_not_copied
(http_parser)
tests/test_asgi_response_wire.py:246
Method
test_large_declared_body_is_not_upgraded
(self)
tests/test_http2_h2c.py:2357
Method
test_large_header_value
Parse header with large value.
tests/test_asgi_callback_parser.py:156
Method
test_large_response
Test receiving large response (1MB).
tests/docker/asgi_compliance/test_http_compliance.py:179
Method
test_large_response
Test receiving large response over HTTP/2.
tests/docker/http2/test_http2_docker.py:75
Method
test_large_response
Test large response (1MB) - tests streaming and flow control.
examples/http2_gevent/test_http2_gevent.py:112
Method
test_large_response_body
Large response body endpoint works.
tests/docker/asgi_framework_compat/tests/test_http_messages.py:116
Method
test_large_response_content_length
Test Content-Length header for large response.
tests/docker/uwsgi/test_uwsgi_integration.py:225
Method
test_large_response_custom_size
Test receiving custom size response.
tests/docker/asgi_compliance/test_http_compliance.py:185
Method
test_large_response_via_proxy
Test large response through proxy.
tests/docker/http2/test_http2_docker.py:195
Method
test_large_stream
Test streaming with many chunks.
tests/dirty/test_streaming_integration.py:402
Method
test_large_stream_chunked
Test large streaming response arrives in chunks.
tests/docker/asgi_compliance/test_streaming_compliance.py:242
Method
test_large_stream_size
Test large streaming response has correct size.
tests/docker/asgi_compliance/test_streaming_compliance.py:235
Method
test_large_streaming_response
Large response body streams correctly.
tests/docker/asgi_framework_compat/tests/test_streaming.py:93
Function
test_last_chunk_and_terminator_go_out_together
(http_parser)
tests/test_asgi_response_wire.py:264
Method
test_last_request_is_served
(self)
tests/test_http2_h2c.py:1106
Method
test_late_response_not_given_to_next_request
A response arriving after the timeout is not reused. Without dropping the connection, the worker's late answer to the timed out reque
tests/test_dirty_arbiter.py:735
Function
test_latency_toxic
(faults_stack)
tests/docker/stress/test_faults.py:25
Method
test_later_stream_decodes_correctly_after_a_refused_second_headers
(self)
tests/test_http2_connection.py:1920
Method
test_leading_whitespace_name_rejected
A leading-space line must not be accepted as a framing header.
tests/test_asgi_parser_validation.py:524
Function
test_length_reader_read
()
tests/test_http.py:206
Function
test_length_reader_read_invalid_size
()
tests/test_http.py:301
Method
test_lifespan_info_endpoint
Test lifespan info endpoint.
tests/docker/asgi_compliance/test_lifespan_compliance.py:67
Method
test_lifespan_scope_asgi_version
Lifespan scope should include ASGI version.
tests/test_asgi_lifespan.py:92
Method
test_lifespan_scope_state_dict
Lifespan scope should include state dict.
tests/test_asgi_lifespan.py:101
Method
test_lifespan_scope_type
Lifespan scope type should be 'lifespan'.
tests/test_asgi_lifespan.py:83
Method
test_lifespan_shutdown_complete_format
Test lifespan.shutdown.complete message format.
tests/test_asgi_lifespan.py:59
Method
test_lifespan_shutdown_failed_format
Test lifespan.shutdown.failed message format.
tests/test_asgi_lifespan.py:65
Method
test_lifespan_shutdown_message_format
Test lifespan.shutdown message format.
tests/test_asgi_lifespan.py:53
Method
test_lifespan_startup_complete
Test successful lifespan startup.
tests/test_asgi_worker.py:279
Method
test_lifespan_startup_complete_format
Test lifespan.startup.complete message format.
tests/test_asgi_lifespan.py:31
Method
test_lifespan_startup_failed
Test lifespan startup failure.
tests/test_asgi_worker.py:310
Method
test_lifespan_startup_failed_format
Test lifespan.startup.failed message format.
tests/test_asgi_lifespan.py:37
Method
test_lifespan_startup_failed_without_message
lifespan.startup.failed can omit message.
tests/test_asgi_lifespan.py:47
Method
test_lifespan_startup_message_format
Test lifespan.startup message format.
tests/test_asgi_lifespan.py:24
Method
test_lifespan_state_accessible
Lifespan state is accessible from request handlers.
tests/docker/asgi_framework_compat/tests/test_lifespan_scope.py:81
Function
test_lifespan_state_is_copied_per_request
ASGI lifespan spec: each request gets a shallow copy of the state, so a value one request stores is not seen by the next one.
tests/test_asgi_scope.py:86
Method
test_lifespan_state_shared
Test that lifespan state is shared with app.
tests/test_asgi_worker.py:328
Method
test_light_app_loaded_on_all_workers
App with workers=None loaded on all workers.
tests/dirty/test_per_app_worker_allocation.py:76
Method
test_lightweight_app_responds
LightweightApp should be accessible and respond correctly.
tests/docker/per_app_allocation/test_per_app_e2e.py:204
Method
test_lightweight_app_round_robins
LightweightApp requests should round-robin across all 4 workers.
tests/docker/per_app_allocation/test_per_app_e2e.py:214
Method
test_limited_app_works
LimitedTask should work.
tests/docker/dirty_ttin_ttou/test_ttin_ttou_docker.py:206
Method
test_line_split_across_feeds
A terminator split between two reads is still found.
tests/test_asgi_parser_validation.py:611
Method
test_list_result_not_treated_as_streaming
Test that list result is not treated as streaming.
tests/dirty/test_worker_streaming.py:248
Function
test_listen_fds_ignores_wrong_pid
(unset)
tests/test_systemd.py:44
Function
test_listen_fds_returns_count
(unset)
tests/test_systemd.py:54
Method
test_load_app_call_works
Test that loaded app can be called.
tests/test_dirty_app.py:93
Method
test_load_app_close_works
Test that close works on loaded app.
tests/test_dirty_app.py:102
Method
test_load_app_init_can_be_called
Test that init can be called on loaded app.
tests/test_dirty_app.py:86
Method
test_load_app_instance_not_initialized
Test that loaded app is not auto-initialized.
tests/test_dirty_app.py:81
Method
test_load_apps_failure
Test failed app loading.
tests/test_dirty_worker.py:165
Method
test_load_apps_init_failure
Test that load_apps handles init() failure.
tests/test_dirty_worker.py:925
Method
test_load_apps_success
Test successful app loading.
tests/test_dirty_worker.py:143
Method
test_load_broken_instantiation
Test loading an app that fails during instantiation.
tests/test_dirty_app.py:135
Function
test_load_config
()
tests/test_config.py:308
Function
test_load_config_explicit_file
()
tests/test_config.py:316
Function
test_load_config_module
()
tests/test_config.py:324
← previous
next →
4,001–4,100 of 5,599, ranked by callers