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_starlette_websocket_echo
Test Starlette WebSocket echo.
tests/docker/asgi_compliance/test_framework_integration.py:153
Method
test_start_already_running
Test that start is idempotent.
tests/ctl/test_server.py:142
Function
test_start_reloader_after_load_wsgi
Check that the reloader is started after the wsgi app has been loaded.
tests/test_reload.py:54
Method
test_start_stop
Test starting and stopping the server.
tests/ctl/test_server.py:115
Method
test_start_worker_consumer_creates_queue_and_task
Test _start_worker_consumer creates queue and task.
tests/test_dirty_arbiter.py:1169
Method
test_startup_called
Test that startup was called (via scope state).
tests/docker/asgi_compliance/test_lifespan_compliance.py:38
Method
test_startup_complete
Test that lifespan startup completed.
tests/docker/asgi_compliance/test_lifespan_compliance.py:29
Method
test_startup_complete_sets_flag
Startup complete should set the flag.
tests/test_asgi_lifespan.py:179
Method
test_startup_custom_data
Custom data set during startup is available.
tests/docker/asgi_framework_compat/tests/test_lifespan_scope.py:30
Method
test_startup_failed_exits_with_boot_error
(self, mode)
tests/test_asgi_lifespan.py:496
Method
test_startup_failed_message_raises_startup_failed
An explicit lifespan.startup.failed is a definite failure.
tests/test_asgi_lifespan.py:292
Method
test_startup_failed_raises_error
Startup failure should raise RuntimeError.
tests/test_asgi_lifespan.py:196
Method
test_startup_sends_startup_event
Startup should send lifespan.startup event.
tests/test_asgi_lifespan.py:155
Method
test_startup_time_recorded
Test that startup time was recorded.
tests/docker/asgi_compliance/test_lifespan_compliance.py:46
Method
test_startup_time_set
Startup time was recorded.
tests/docker/asgi_framework_compat/tests/test_lifespan_scope.py:23
Method
test_startup_timeout_raises_error
Startup timeout should raise RuntimeError.
tests/test_asgi_lifespan.py:363
Method
test_startup_was_called
Startup handler was called.
tests/docker/asgi_framework_compat/tests/test_lifespan_scope.py:16
Function
test_stash_counter
Test that global counter increments correctly.
examples/dirty_example/test_stash_integration.py:69
Method
test_stash_error_base
Test base StashError.
tests/test_dirty_stash.py:119
Method
test_stash_key_not_found_error
Test StashKeyNotFoundError.
tests/test_dirty_stash.py:131
Function
test_stash_list_sessions
Test listing all sessions.
examples/dirty_example/test_stash_integration.py:96
Function
test_stash_logout
Test session deletion.
examples/dirty_example/test_stash_integration.py:120
Method
test_stash_message_roundtrip
Test encode/decode roundtrip for stash message.
tests/test_dirty_stash.py:72
Method
test_stash_op_codes
Test stash operation codes are integers.
tests/test_dirty_stash.py:150
Method
test_stash_operations_have_unique_codes
Test that all stash operations have unique codes.
tests/test_dirty_stash.py:86
Function
test_stash_shared_state
Test that stash state is shared across workers.
examples/dirty_example/test_stash_integration.py:38
Method
test_stash_table_name
Test StashTable name property.
tests/test_dirty_stash.py:106
Method
test_stash_table_not_found_error
Test StashTableNotFoundError.
tests/test_dirty_stash.py:125
Method
test_state_endpoint
Test state endpoint returns state info.
tests/docker/asgi_compliance/test_lifespan_compliance.py:94
Method
test_state_in_http_scope
Test that state dict is included in HTTP scope.
tests/test_asgi_compliance.py:668
Method
test_state_is_same_object
State should be the same object reference.
tests/test_asgi_lifespan.py:250
Method
test_state_is_shallow_copy
ASGI lifespan spec: each request gets a shallow copy of the state.
tests/test_asgi_compliance.py:679
Method
test_state_modifications_persist
Modifications to state persist.
tests/docker/asgi_framework_compat/tests/test_lifespan_scope.py:89
Method
test_state_mutations_visible
State mutations should be visible to all references.
tests/test_asgi_lifespan.py:239
Method
test_state_not_present_without_worker_state
Test that state is not in scope if worker has no state.
tests/test_asgi_compliance.py:693
Method
test_state_persists_across_requests
State persists across multiple requests.
tests/docker/asgi_framework_compat/tests/test_lifespan_scope.py:65
Method
test_state_values_exist
(self)
tests/test_http2_stream.py:26
Method
test_states_are_unique
(self)
tests/test_http2_stream.py:35
Method
test_stats
Test worker statistics.
examples/celery_alternative/tests/test_tasks.py:75
Method
test_stats
Test worker statistics.
examples/celery_alternative/tests/test_tasks.py:151
Method
test_stats
Test worker statistics.
examples/celery_alternative/tests/test_tasks.py:247
Method
test_stats_tracks_runs
Test that stats tracks task runs.
examples/celery_alternative/tests/test_tasks.py:298
Function
test_statsd_changes_logger
()
tests/test_config.py:424
Function
test_statsd_fail
UDP socket fails
tests/test_statsd.py:57
Function
test_statsd_host
()
tests/test_config.py:400
Function
test_statsd_host_initialization
()
tests/test_statsd.py:69
Function
test_statsd_host_with_unix_as_hostname
()
tests/test_config.py:413
Function
test_statsd_logger_skips_default_pre_request_when_not_debug
()
tests/test_asgi_config_cache.py:171
Function
test_statsd_socket_address_family
(address, family, destination)
tests/test_statsd.py:201
Method
test_status_100_continue
Handle 100 status (may not be supported by all frameworks).
tests/docker/asgi_framework_compat/tests/test_http_messages.py:77
Method
test_status_codes
Test various HTTP status codes.
tests/docker/asgi_compliance/test_http_compliance.py:112
Method
test_status_codes
Status endpoint returns correct status code.
tests/docker/asgi_framework_compat/tests/test_http_messages.py:71
Method
test_status_codes
Test various HTTP status codes.
tests/docker/http2/test_http2_docker.py:89
Function
test_status_line_has_the_standard_reason_phrase
The error text quotes the request, so it goes in the body, never in the status line (RFC 9112 section 4).
tests/test_asgi_parse_error_response.py:71
Method
test_stop_cancels_all_consumers
Test stop() cancels all consumer tasks.
tests/test_dirty_arbiter.py:1238
Method
test_stop_for_fork_joins_thread_started_immediately
_stop_for_fork must stop the thread even with no startup delay. Calling _stop_for_fork right after start() lands in the window before
tests/ctl/test_server.py:170
Method
test_stop_graceful
Test graceful stop with no workers.
tests/test_dirty_arbiter.py:881
Method
test_stop_not_graceful
Test non-graceful stop.
tests/test_dirty_arbiter.py:896
Method
test_stop_not_running
Test stopping a non-running server.
tests/ctl/test_server.py:158
Function
test_str
()
tests/test_config.py:556
Function
test_str_headers_built_only_when_read
(kind)
tests/test_asgi_request_build.py:115
Method
test_str_representation
Test string representation.
tests/test_dirty_worker.py:121
Function
test_str_to_addr_list_validation
()
tests/test_config.py:168
Function
test_str_to_list
()
tests/test_config.py:197
Function
test_str_validation
()
tests/test_config.py:160
Method
test_stream_async_returns_async_iterator
Test that stream_async() returns an async iterator.
tests/dirty/test_client_streaming_async.py:71
Method
test_stream_at_or_below_last_stream_id_is_served
A stream the peer said it would still process is served.
tests/test_http2_connection.py:1646
Method
test_stream_chunks_received
Test that chunks are received incrementally.
tests/docker/asgi_compliance/test_streaming_compliance.py:57
Method
test_stream_closed
(self)
tests/test_http2_errors.py:55
Method
test_stream_credit_returns_only_for_what_the_app_read
(self)
tests/test_http2_connection.py:1354
Method
test_stream_ended_sets_body_complete
_handle_stream_ended must set stream._body_complete = True.
tests/test_http2_connection.py:1016
Method
test_stream_ended_signals_body_event
_handle_stream_ended must signal _body_event if it exists.
tests/test_http2_connection.py:1056
Method
test_stream_ended_without_body_event_does_not_raise
_handle_stream_ended must not raise when _body_event is None.
tests/test_http2_connection.py:1101
Method
test_stream_error_default_message
(self)
tests/test_http2_errors.py:158
Method
test_stream_error_str
(self)
tests/test_http2_errors.py:153
Method
test_stream_error_with_error_code
(self)
tests/test_http2_errors.py:163
Method
test_stream_id_in_error
(self)
tests/test_http2_errors.py:149
Method
test_stream_id_zero
(self)
tests/test_http2_stream.py:89
Method
test_stream_iterator_empty_stream
Test that empty stream (just end) works.
tests/dirty/test_client_streaming.py:119
Method
test_stream_iterator_handles_error
Test that stream iterator raises on error message.
tests/dirty/test_client_streaming.py:100
Method
test_stream_iterator_stops_after_exhausted
Test that iterator stays exhausted after StopIteration.
tests/dirty/test_client_streaming.py:127
Method
test_stream_iterator_with_for_loop
Test stream iterator works in for loop.
tests/dirty/test_client_streaming.py:149
Method
test_stream_iterator_yields_chunks
Test that stream iterator yields chunks correctly.
tests/dirty/test_client_streaming.py:71
Method
test_stream_iterator_yields_complex_chunks
Test that stream iterator yields complex data types.
tests/dirty/test_client_streaming.py:85
Method
test_stream_lines
Test streaming response line by line.
tests/docker/asgi_compliance/test_streaming_compliance.py:73
Method
test_stream_many_chunks
Test streaming with many chunks.
tests/dirty/test_client_streaming.py:198
Method
test_stream_opened_after_goaway_is_refused
(self)
tests/test_http2_connection.py:1591
Method
test_stream_opened_after_max_requests_is_refused
(self)
tests/test_http2_h2c.py:1417
Method
test_stream_reset_by_server
Test server resetting a stream.
tests/test_http2_integration.py:362
Method
test_stream_reset_lifecycle
Test a stream that gets reset.
tests/test_http2_stream.py:674
Method
test_stream_returns_iterator
Test that stream() returns an iterator.
tests/dirty/test_client_streaming.py:65
Method
test_stream_sends_request_on_first_iteration
Test that request is sent on first next() call.
tests/dirty/test_client_streaming.py:165
Method
test_stream_variable_chunk_sizes
Test streaming with variable chunk sizes.
tests/docker/asgi_compliance/test_streaming_compliance.py:65
Method
test_stream_with_complex_data
Test streaming with complex JSON-serializable data.
tests/dirty/test_streaming_integration.py:437
Method
test_stream_with_kwargs
Test streaming with keyword arguments.
tests/dirty/test_client_streaming.py:213
Function
test_streamed_upload_is_echoed_in_full
(server, client)
tests/test_http2_live.py:196
Method
test_streaming_and_http_concurrent
Test concurrent streaming and regular HTTP requests.
tests/docker/asgi_compliance/test_concurrency.py:186
Method
test_streaming_content_type
Streaming response has correct content type.
tests/docker/asgi_framework_compat/tests/test_streaming.py:28
Method
test_streaming_dict_chunks
Test streaming chunks that are dictionaries.
tests/dirty/test_worker_streaming.py:306
Method
test_streaming_empty_generator
Test streaming with empty generator.
tests/dirty/test_worker_streaming.py:329
← previous
next →
5,001–5,100 of 5,599, ranked by callers