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_async_read_incomplete_header
Test async read with incomplete header.
tests/test_dirty_protocol.py:308
Method
test_async_read_invalid_magic
Test async read rejects invalid magic.
tests/test_dirty_protocol.py:327
Method
test_async_read_message_too_large
Test async read rejects too-large messages.
tests/test_dirty_protocol.py:339
Method
test_async_read_write
Test async read/write with mock streams.
tests/test_dirty_protocol.py:281
Method
test_async_read_write
Test async read/write using a unix server.
tests/ctl/test_protocol.py:200
Method
test_async_send_informational_method_exists
Test that send_informational method exists on AsyncHTTP2Connection.
tests/test_early_hints.py:423
Method
test_async_sse
Test async SSE streaming.
tests/docker/asgi_compliance/test_streaming_compliance.py:396
Method
test_async_starlette
Test Starlette with async client.
tests/docker/asgi_compliance/test_framework_integration.py:460
Method
test_async_stream_chunks
Test async streaming with iter_bytes.
tests/docker/asgi_compliance/test_streaming_compliance.py:384
Method
test_async_stream_empty_stream
Test that empty stream (just end) works.
tests/dirty/test_client_streaming_async.py:133
Method
test_async_stream_handles_error
Test that async stream iterator raises on error message.
tests/dirty/test_client_streaming_async.py:113
Method
test_async_stream_many_chunks
Test async streaming with many chunks.
tests/dirty/test_client_streaming_async.py:202
Method
test_async_stream_sends_request_on_first_iteration
Test that request is sent on first async iteration.
tests/dirty/test_client_streaming_async.py:168
Method
test_async_stream_stops_after_exhausted
Test that async iterator stays exhausted after StopAsyncIteration.
tests/dirty/test_client_streaming_async.py:145
Method
test_async_stream_timeout
Test that timeout during async streaming raises DirtyTimeoutError.
tests/dirty/test_client_streaming_async.py:248
Method
test_async_stream_with_kwargs
Test async streaming with keyword arguments.
tests/dirty/test_client_streaming_async.py:220
Method
test_async_stream_yields_chunks
Test that async stream iterator yields chunks correctly.
tests/dirty/test_client_streaming_async.py:78
Method
test_async_stream_yields_complex_chunks
Test that async stream iterator yields complex data types.
tests/dirty/test_client_streaming_async.py:95
Method
test_async_streaming
Test async streaming.
tests/docker/asgi_compliance/test_streaming_compliance.py:377
Function
test_atoms_defaults
()
tests/test_logger.py:16
Function
test_atoms_zero_bytes
()
tests/test_logger.py:41
Method
test_authority_overrides_host_header
:authority MUST override Host header per RFC 9113 section 8.3.1.
tests/test_http2_request.py:274
Method
test_authority_precedence_after_policy
(self)
tests/test_http2_request.py:813
Method
test_auto_mode_tolerates_app_without_lifespan
(self)
tests/test_asgi_lifespan.py:510
Method
test_bad_base64_is_refused
(self)
tests/test_http2_h2c.py:2333
Method
test_bad_chunk_terminator_rejected
Non-CRLF bytes after chunk data must be rejected, not skipped.
tests/test_asgi_parser_validation.py:419
Function
test_bad_key_gets_400
(http_parser, key)
tests/test_asgi_websocket_handshake.py:71
Function
test_bad_request_resets_only_its_stream
(server, client)
tests/test_http2_live.py:311
Function
test_bandwidth_toxic
(faults_stack)
tests/docker/stress/test_faults.py:33
Method
test_base_call_dispatches_to_method
Test that base __call__ dispatches to methods.
tests/test_dirty_app.py:42
Method
test_base_call_private_method_rejected
Test that __call__ rejects private methods.
tests/test_dirty_app.py:59
Method
test_base_call_unknown_action
Test that __call__ raises for unknown action.
tests/test_dirty_app.py:52
Method
test_base_class_methods_exist
Test that base class has all required methods.
tests/test_dirty_app.py:21
Method
test_base_close_is_noop
Test that base close does nothing.
tests/test_dirty_app.py:36
Method
test_base_init_is_noop
Test that base init does nothing.
tests/test_dirty_app.py:30
Method
test_basic_addition
Tests that 1 + 1 always equals 2.
examples/frameworks/django/testing/testing/apps/someapp/tests.py:15
Method
test_basic_connection
Test basic WebSocket connection.
tests/docker/asgi_compliance/test_websocket_compliance.py:33
Method
test_basic_get_request
(self)
tests/test_http2_request.py:178
Method
test_basic_init
(self)
tests/test_http2_stream.py:51
Method
test_basic_initialization
(self)
tests/test_http2_async_connection.py:110
Method
test_basic_initialization
(self)
tests/test_http2_connection.py:87
Method
test_basic_request
Verify the server responds to basic requests.
tests/test_signal_integration.py:139
Method
test_basic_scope_structure
Test basic HTTP scope structure.
tests/test_asgi_http_scope.py:57
Method
test_batch_processing_streaming
Test batch image processing with streaming.
examples/celery_alternative/tests/test_integration.py:182
Method
test_bel_rejected
(self)
tests/test_asgi_parser_validation.py:549
Method
test_below_min_raises
Values below 16384 should raise ValueError per RFC 7540.
tests/test_http2_config.py:179
Method
test_binary_body
Test POST with binary body containing null bytes.
tests/docker/uwsgi/test_uwsgi_integration.py:287
Method
test_binary_data_no_encoding
Test that binary data is passed through without encoding.
tests/test_dirty_tlv.py:527
Method
test_binary_data_roundtrip
Test binary data roundtrip through socket.
tests/test_dirty_protocol.py:261
Method
test_binary_frame_opcode
Test binary message uses correct opcode (0x2).
tests/test_asgi_protocol_compat.py:631
Method
test_binary_in_nested_structure
Test binary data inside nested structures.
tests/test_dirty_tlv.py:544
Method
test_binary_message_allowed
Binary messages can contain any bytes.
tests/test_asgi_websocket_enhanced.py:50
Method
test_binary_receive_does_not_close
Test that receiving binary doesn't unexpectedly close connection.
tests/test_asgi_protocol_compat.py:738
Method
test_binary_send_large
Test sending large binary message (64KB).
tests/test_asgi_protocol_compat.py:615
Method
test_binary_send_small
Test sending small binary message.
tests/test_asgi_protocol_compat.py:597
Method
test_binary_with_null_bytes
Test binary data with embedded null bytes.
tests/test_dirty_tlv.py:536
Function
test_bind_fd
()
tests/test_config.py:543
Method
test_body_in_chunks
Body can arrive in multiple chunks.
tests/test_asgi_protocol_http.py:175
Method
test_body_is_dropped
(self, method, status)
tests/test_http2_response.py:71
Method
test_body_is_pulled_off_the_socket_as_the_app_reads
(self)
tests/test_http2_connection.py:1339
Method
test_body_is_read_off_the_request_when_not_passed
(self)
tests/test_http2_h2c.py:2296
Function
test_body_longer_than_content_length_is_cut
(http_parser)
tests/test_asgi_request_base.py:156
Function
test_body_never_completing_is_bounded_by_the_window
(server, client)
tests/test_http2_live.py:216
Function
test_body_not_taken_waits_for_app
A body that arrived in full but that the app left unread keeps the connection waiting for the call.
tests/test_asgi_keepalive_background.py:226
Function
test_body_read_error_stops_the_connection
A body that fails to read (here a repeated singleton field in the trailers) leaves the start of the next request unknown: the parser must not
tests/test_http.py:725
Function
test_body_read_in_pieces_reads_ahead_within_the_body
()
tests/test_http.py:257
Function
test_body_read_uses_large_recv_calls
()
tests/test_http.py:247
Function
test_body_read_whole_body_memory_stays_close_to_body_size
()
tests/test_http.py:284
Method
test_body_receiver_cancellation_during_wait
receive() must propagate CancelledError, not mask it as disconnect. When the ASGI task is cancelled while receive() waits for a disconnect
tests/test_asgi_compliance.py:1066
Method
test_body_receiver_feed_after_complete
Feeding data after body is complete should be safe.
tests/test_asgi_error_handling.py:191
Method
test_body_receiver_handles_closed_protocol
BodyReceiver should handle protocol being closed.
tests/test_asgi_error_handling.py:143
Method
test_body_receiver_immediate_disconnect_if_already_closed
Test that receive() immediately returns http.disconnect if already closed. If signal_disconnect() has already been called before receive(),
tests/test_asgi_compliance.py:933
Method
test_body_receiver_multiple_signal_disconnect
Multiple signal_disconnect calls should be safe.
tests/test_asgi_error_handling.py:171
Method
test_body_receiver_respects_protocol_closed_state
Test that receive() checks protocol._closed state. If the protocol is closed but signal_disconnect wasn't called, receive() should st
tests/test_asgi_compliance.py:959
Method
test_body_receiver_waits_for_disconnect_after_body_finished
Test that receive() blocks after body is finished until disconnect is signaled. This tests the core regression fix: after body is complete, c
tests/test_asgi_compliance.py:885
Method
test_bodyless_request_reads_eof_without_touching_the_socket
An upgraded or END_STREAM'd GET has no body to pull in.
tests/test_http2_request.py:167
Function
test_bool_validation
()
tests/test_config.py:132
Method
test_both
(self)
tests/test_http2_h2c.py:295
Method
test_both_allows_http1_through
(self)
tests/test_http2_h2c.py:722
Method
test_both_frameworks_available
Test both frameworks are available.
tests/docker/asgi_compliance/test_framework_integration.py:337
Method
test_broadcast_custom_count
Test broadcast with custom count.
tests/docker/asgi_compliance/test_websocket_compliance.py:429
Method
test_broadcast_default_count
Test broadcast with default count (3).
tests/docker/asgi_compliance/test_websocket_compliance.py:412
Method
test_buffer_cannot_grow_past_the_preface
(self)
tests/test_http2_h2c.py:632
Method
test_burst_requests
Test handling burst of requests.
tests/docker/asgi_compliance/test_concurrency.py:255
Function
test_bws_before_extension_accepted
RFC 9112 section 7.1.1 allows BWS before the first ';' too.
tests/test_chunk_extension.py:110
Function
test_bws_before_extension_accepted_gunicorn_h1c
(size_line)
tests/test_chunk_extension.py:118
Function
test_bytearray_body_reused_by_the_app
(http_parser, framing)
tests/test_asgi_response_wire.py:298
Method
test_bytes_after_the_preface_reach_http2
(self)
tests/test_http2_h2c.py:645
Method
test_bytes_too_large
Test that bytes exceeding max size raises error.
tests/test_dirty_tlv.py:149
Function
test_cacerts
()
tests/test_ssl.py:33
Method
test_cached_query
Test cached query functionality.
examples/celery_alternative/tests/test_integration.py:275
Method
test_cached_query_miss_then_hit
Test query caching - miss then hit.
examples/celery_alternative/tests/test_tasks.py:237
Function
test_callable_validation
()
tests/test_config.py:208
Function
test_callable_validation_for_string
()
tests/test_config.py:262
Method
test_can_be_enabled
(self)
tests/test_http2_h2c.py:76
Method
test_can_catch_as_base_error
Can catch DirtyNoWorkersAvailableError as DirtyError.
tests/test_dirty_errors.py:66
Method
test_can_receive_in_half_closed_local
(self)
tests/test_http2_stream.py:105
Method
test_can_receive_in_open_state
(self)
tests/test_http2_stream.py:99
Method
test_can_send_in_half_closed_remote
(self)
tests/test_http2_stream.py:139
Method
test_can_send_in_open_state
(self)
tests/test_http2_stream.py:133
← previous
next →
2,901–3,000 of 5,599, ranked by callers