Asynchronous HTTP client/server framework for asyncio and Python
2603 matches across 16 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | aiohttp/web_ws.py | 240 | def _handle_ping_pong_exception(self, exc: BaseException) -> None: |
| LOW | aiohttp/web_ws.py | 571 | def _set_code_close_transport(self, code: int) -> None: |
| LOW | aiohttp/client_middlewares.py | 35 | async def single_middleware_handler(req: ClientRequest) -> ClientResponse: |
| LOW | aiohttp/multipart.py | 77 | def parse_content_disposition( |
| LOW | aiohttp/multipart.py | 180 | def content_disposition_filename( |
| LOW | aiohttp/multipart.py | 510 | def _apply_content_transfer_decoding(self, data: bytes) -> bytes: |
| LOW | aiohttp/multipart.py | 827 | async def _read_until_first_boundary(self) -> None: |
| LOW | aiohttp/web_response.py | 316 | def _generate_content_type_header( |
| LOW | aiohttp/client_ws.py | 213 | def _handle_ping_pong_exception(self, exc: BaseException) -> None: |
| LOW | aiohttp/tracing.py | 136 | def on_response_chunk_received( |
| LOW | aiohttp/tracing.py | 158 | def on_connection_queued_start( |
| LOW | aiohttp/tracing.py | 170 | def on_connection_create_start( |
| LOW | aiohttp/tracing.py | 368 | async def send_response_chunk_received( |
| LOW | aiohttp/tracing.py | 416 | async def send_connection_queued_start(self) -> None: |
| LOW | aiohttp/tracing.py | 421 | async def send_connection_queued_end(self) -> None: |
| LOW | aiohttp/tracing.py | 426 | async def send_connection_create_start(self) -> None: |
| LOW | aiohttp/tracing.py | 431 | async def send_connection_create_end(self) -> None: |
| LOW | aiohttp/tracing.py | 436 | async def send_connection_reuseconn(self) -> None: |
| LOW | aiohttp/tracing.py | 441 | async def send_dns_resolvehost_start(self, host: str) -> None: |
| LOW | aiohttp/web_exceptions.py | 499 | def _initialize_default_reason() -> None: |
| LOW | aiohttp/web_middlewares.py | 45 | def normalize_path_middleware( |
| LOW | aiohttp/streams.py | 301 | def begin_http_chunk_receiving(self) -> None: |
| LOW | aiohttp/web_protocol.py | 120 | class RequestHandler(BaseProtocol, Generic[_Request]): |
| LOW | aiohttp/client.py | 692 | async def _connect_and_send_request( |
| LOW | aiohttp/web_urldispatcher.py | 635 | def _resolve_path_to_response(self, unresolved_path: Path) -> StreamResponse: |
| LOW | aiohttp/client_proto.py | 32 | class ResponseHandler(BaseProtocol, DataQueue[tuple[RawResponseMessage, StreamReader]]): |
| LOW | aiohttp/payload.py | 472 | def _set_or_restore_start_position(self) -> None: |
| LOW | aiohttp/client_reqrep.py | 85 | def _gen_default_accept_encoding() -> str: |
| LOW | aiohttp/client_reqrep.py | 1129 | def _update_transfer_encoding(self) -> None: |
| LOW | aiohttp/connector.py | 553 | def _update_proxy_auth_header_and_build_proxy_req( |
| LOW | aiohttp/connector.py | 636 | async def _wait_for_available_connection( |
| LOW | aiohttp/connector.py | 1134 | async def _resolve_host_with_throttle( |
| LOW | aiohttp/connector.py | 1404 | def _convert_hosts_to_addr_infos( |
| LOW | aiohttp/connector.py | 1425 | async def _create_direct_connection( |
| LOW | aiohttp/web_fileresponse.py | 224 | def _get_file_path_stat_encoding( |
| LOW | aiohttp/_cookie_helpers.py | 85 | def preserve_morsel_with_coded_value(cookie: Morsel[str]) -> Morsel[str]: |
| LOW | aiohttp/http_writer.py | 132 | def _send_headers_with_payload( |
| LOW | aiohttp/helpers.py | 409 | def content_disposition_header( |
| LOW | aiohttp/helpers.py | 1142 | def should_remove_content_length(method: str, code: int) -> bool: |
| LOW | aiohttp/http_parser.py | 1154 | def begin_http_chunk_receiving(self) -> None: |
| LOW | aiohttp/abc.py | 189 | def update_cookies_from_headers( |
| LOW | aiohttp/_websocket/writer.py | 190 | def _send_compressed_frame_sync( |
| LOW | aiohttp/_websocket/writer.py | 218 | async def _send_compressed_frame_async_locked( |
| LOW | tests/test_connector.py | 2803 | async def test_close_cancels_cleanup_handle(key: ConnectionKey) -> None: |
| LOW | tests/test_connector.py | 2811 | async def test_close_cancels_resolve_host(make_client_request: _RequestMaker) -> None: |
| LOW | tests/test_connector.py | 3185 | async def test_close_cancels_cleanup_closed_handle() -> None: |
| LOW | tests/test_connector.py | 3192 | async def test_ctor_with_default_loop() -> None: |
| LOW | tests/test_connector.py | 3199 | async def test_base_connector_allows_high_level_protocols() -> None: |
| LOW | tests/test_connector.py | 3722 | async def test_limit_per_host_property() -> None: |
| LOW | tests/test_connector.py | 3729 | async def test_limit_property_default() -> None: |
| LOW | tests/test_connector.py | 3735 | async def test_limit_per_host_property_default() -> None: |
| LOW | tests/test_connector.py | 3741 | async def test_force_close_and_explicit_keep_alive() -> None: |
| LOW | tests/test_connector.py | 4461 | async def test_connector_does_not_remove_needed_waiters( |
| LOW | tests/test_connector.py | 4471 | async def await_connection_and_check_waiters() -> None: |
| LOW | tests/test_connector.py | 4479 | async def allow_connection_and_add_dummy_waiter() -> None: |
| LOW | tests/test_connector.py | 169 | async def test_connection_del_loop_debug() -> None: |
| LOW | tests/test_connector.py | 191 | def test_connection_del_loop_closed( |
| LOW | tests/test_connector.py | 236 | async def test_del_with_scheduled_cleanup(key: ConnectionKey) -> None: |
| LOW | tests/test_connector.py | 265 | def test_del_with_closed_loop( |
| LOW | tests/test_connector.py | 308 | async def test_async_context_manager() -> None: |
| 1891 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | aiohttp/client_middlewares.py | 44 | # Create a new closure that captures the current state |
| MEDIUM | aiohttp/resolver.py | 199 | # Create a new resolver and client set for this loop if it doesn't exist |
| MEDIUM | aiohttp/connector.py | 1326 | tls_proto = self._factory() # Create a brand new proto for TLS |
| MEDIUM | aiohttp/client_middleware_digest_auth.py | 335 | # Define a dict mapping of header fields to their values |
| MEDIUM | aiohttp/_websocket/writer.py | 96 | # Create a task to shield from cancellation |
| MEDIUM | tests/test_connector.py | 2311 | # Create a mock SSL protocol |
| MEDIUM | tests/test_connector.py | 2341 | # Create a mock non-SSL protocol |
| MEDIUM | tests/test_connector.py | 4685 | # Create a connect tunnel connection |
| MEDIUM | tests/test_client_functional.py | 694 | # Create a BytesPayload directly - this ensures we test the path |
| MEDIUM | tests/test_client_functional.py | 742 | # Create a streaming response that continuously sends data |
| MEDIUM | tests/test_client_functional.py | 765 | # Create a background task that continuously reads data |
| MEDIUM | tests/test_client_functional.py | 2411 | # Create a highly compressible payload. |
| MEDIUM | tests/test_client_functional.py | 2443 | # Create a highly compressible payload |
| MEDIUM | tests/test_client_functional.py | 2474 | # Create a highly compressible payload. |
| MEDIUM | tests/test_client_functional.py | 4616 | # Create an async generator of data |
| MEDIUM | tests/test_client_functional.py | 5247 | # Create a mocked payload to verify close() is called |
| MEDIUM | tests/test_client_functional.py | 5277 | # Create a mocked payload to verify close() is called |
| MEDIUM | tests/test_client_functional.py | 5307 | # Create a mocked payload to verify close() is called |
| MEDIUM | tests/test_client_functional.py | 5334 | # Create a mocked payload to verify close() is called |
| MEDIUM | tests/test_client_functional.py | 5419 | # Create a new client session with our fake resolver |
| MEDIUM | tests/test_client_functional.py | 5525 | # Create a test file |
| MEDIUM | tests/test_client_functional.py | 5590 | # Create a test file |
| MEDIUM | tests/test_client_functional.py | 5663 | # Create a test file |
| MEDIUM | tests/test_websocket_parser.py | 39 | # This method is overridden to allow for patching in tests. |
| MEDIUM | tests/test_websocket_parser.py | 48 | # This method is overridden to allow for patching in tests. |
| MEDIUM | tests/test_client_request.py | 128 | # Create a response to test request_info |
| MEDIUM | tests/test_client_request.py | 150 | # Create a response to test request_info |
| MEDIUM | tests/test_client_request.py | 1132 | # Create a BytesPayload which has a size property |
| MEDIUM | tests/test_client_request.py | 1155 | # Create a payload with a known size |
| MEDIUM | tests/test_client_request.py | 1900 | # Create an empty async generator |
| MEDIUM | tests/test_client_request.py | 1922 | # Create a mock payload that tracks if it was closed |
| MEDIUM | tests/test_client_request.py | 2045 | # Create a mock writer and connection |
| MEDIUM | tests/test_client_request.py | 2049 | # Create a request |
| MEDIUM | tests/test_cookie_helpers.py | 48 | # Create a cookie with a coded_value different from value |
| MEDIUM | tests/test_cookiejar.py | 1425 | # Create a shared cookie (no domain/path restrictions) |
| MEDIUM | tests/test_cookiejar.py | 1553 | # Create a truly shared cookie |
| MEDIUM | tests/test_client_middleware_digest_auth.py | 257 | # Create a modified challenge with an unsupported algorithm |
| MEDIUM | tests/test_client_middleware_digest_auth.py | 273 | # Create a challenge with the specific algorithm case |
| MEDIUM | tests/test_client_middleware_digest_auth.py | 242 | # Create a modified challenge with the test algorithm |
| MEDIUM | tests/test_client_middleware_digest_auth.py | 293 | # Create a challenge with the specific algorithm case |
| MEDIUM | tests/test_client_middleware_digest_auth.py | 393 | # Create the auth object |
| MEDIUM | tests/test_client_middleware_digest_auth.py | 865 | # Create a session that uses the digest auth middleware |
| MEDIUM | tests/test_client_response.py | 1803 | # Create a SimpleCookie with some cookies |
| MEDIUM | tests/test_client_middleware.py | 804 | # Create a simple server for the allowed request |
| MEDIUM | tests/test_client_middleware.py | 945 | # Create main server |
| MEDIUM | tests/test_client_middleware.py | 1014 | # Create main server |
| MEDIUM | tests/test_payload.py | 1327 | # Create a test file with known content |
| MEDIUM | tests/test_payload.py | 374 | # Create a large file that's multiple times larger than DEFAULT_CHUNK_SIZE |
| MEDIUM | tests/test_payload.py | 418 | # Create a custom file-like object that tracks read sizes |
| MEDIUM | tests/test_payload.py | 448 | # Create a large text file that's multiple times larger than DEFAULT_CHUNK_SIZE |
| MEDIUM | tests/test_payload.py | 493 | # Create a custom file-like object that tracks read sizes |
| MEDIUM | tests/test_http_parser.py | 2757 | # Create a large payload (3MiB) that compresses well |
| MEDIUM | tests/test_proxy_functional.py | 963 | # Create a minimal proxy server |
| MEDIUM | tests/test_client_proto.py | 327 | # Create a mock transport |
| MEDIUM | tests/test_multipart.py | 1731 | # Create a mock BodyPartReader |
| MEDIUM | tests/test_multipart.py | 1737 | # Create the payload |
| MEDIUM | tests/test_web_urldispatcher.py | 276 | # This file is below the symlink target and should not be reachable |
| MEDIUM | tests/test_resolver.py | 449 | # Create a second manager and check it's the same instance |
| MEDIUM | tests/test_resolver.py | 466 | # Create a mock AsyncResolver for testing |
| MEDIUM | tests/test_resolver.py | 586 | # Create a mock resolver that will be None when accessed |
| 10 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | aiohttp/multipart.py | 66 | |
| LOW | aiohttp/web_response.py | 1 | |
| LOW | aiohttp/web_response.py | 49 | |
| LOW | aiohttp/test_utils.py | 19 | |
| LOW | aiohttp/tracing.py | 5 | |
| LOW | aiohttp/tracing.py | 12 | |
| LOW | aiohttp/web_middlewares.py | 17 | |
| LOW | aiohttp/web.py | 14 | |
| LOW | aiohttp/web.py | 14 | |
| LOW | aiohttp/web.py | 14 | |
| LOW | aiohttp/web.py | 17 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| LOW | aiohttp/web.py | 18 | |
| 253 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.cfg | 61 | # 2-minute per-test timeout so a hung test surfaces by name instead of taking |
| LOW | setup.cfg | 81 | ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using. |
| LOW | aiohttp/multipart.py | 941 | def _boundary_value(self) -> str: |
| LOW | aiohttp/web_urldispatcher.py | 981 | # (though custom rules could match on other things). This means that |
| LOW | aiohttp/client_middleware_digest_auth.py | 61 | # +--|-|-|--|----|------|----|--||-----|-> maybe whitespace |
| LOW | aiohttp/web_fileresponse.py | 301 | if (ifrange := request.if_range) is None or file_mtime <= ifrange.timestamp(): |
| LOW | aiohttp/web_fileresponse.py | 341 | # the byte range is interpreted as the remainder |
| LOW | aiohttp/_websocket/writer.py | 81 | # Non-compressed frames don't need lock or shield |
| LOW | tests/test_web_urldispatcher.py | 261 | ) -> None: |
| LOW | requirements/base-ft.txt | 1 | # |
| LOW | requirements/base-ft.txt | 21 | frozenlist==1.8.0 |
| LOW | requirements/base-ft.txt | 41 | pycparser==3.0 |
| LOW | requirements/multidict.txt | 1 | # |
| LOW | requirements/constraints.txt | 1 | # |
| LOW | requirements/constraints.txt | 21 | # -r requirements/runtime-deps.in |
| LOW | requirements/constraints.txt | 41 | # via |
| LOW | requirements/constraints.txt | 61 | # via requests |
| LOW | requirements/constraints.txt | 81 | # sphinx |
| LOW | requirements/constraints.txt | 101 | gunicorn==26.0.0 |
| LOW | requirements/constraints.txt | 121 | # sphinx |
| LOW | requirements/constraints.txt | 141 | # aiohttp |
| LOW | requirements/constraints.txt | 161 | # via mypy |
| LOW | requirements/constraints.txt | 181 | proxy-py==2.4.10 |
| LOW | requirements/constraints.txt | 201 | # via |
| LOW | requirements/constraints.txt | 221 | pytest-codspeed==5.0.3 |
| LOW | requirements/constraints.txt | 241 | # -r requirements/lint.in |
| LOW | requirements/constraints.txt | 261 | # via sphinx |
| LOW | requirements/constraints.txt | 281 | sphinxcontrib-serializinghtml==2.0.0 |
| LOW | requirements/constraints.txt | 301 | trustme==1.2.1 ; platform_machine != "i686" |
| LOW | requirements/constraints.txt | 321 | urllib3==2.7.0 |
| LOW | requirements/constraints.txt | 341 | # -r requirements/lint.in |
| LOW | requirements/dev.txt | 1 | # |
| LOW | requirements/dev.txt | 21 | # -r requirements/runtime-deps.in |
| LOW | requirements/dev.txt | 41 | # via |
| LOW | requirements/dev.txt | 61 | # via requests |
| LOW | requirements/dev.txt | 81 | # via pytest |
| LOW | requirements/dev.txt | 101 | identify==2.6.19 |
| LOW | requirements/dev.txt | 121 | # towncrier |
| LOW | requirements/dev.txt | 141 | # via |
| LOW | requirements/dev.txt | 161 | pkgconfig==1.6.0 |
| LOW | requirements/dev.txt | 181 | # -r requirements/test-common-base.in |
| LOW | requirements/dev.txt | 201 | # -r requirements/lint.in |
| LOW | requirements/dev.txt | 221 | # via -r requirements/test-common-base.in |
| LOW | requirements/dev.txt | 241 | # pre-commit |
| LOW | requirements/dev.txt | 261 | sphinxcontrib-applehelp==2.0.0 |
| LOW | requirements/dev.txt | 281 | # mypy |
| LOW | requirements/dev.txt | 301 | # multidict |
| LOW | requirements/dev.txt | 321 | wait-for-it==2.3.0 |
| LOW | requirements/cython.txt | 1 | # |
| LOW | requirements/runtime-deps.txt | 1 | # |
| LOW | requirements/runtime-deps.txt | 21 | frozenlist==1.8.0 |
| LOW | requirements/runtime-deps.txt | 41 | # -r requirements/runtime-deps.in |
| LOW | requirements/test-common-base.txt | 1 | # |
| LOW | requirements/test-common-base.txt | 21 | exceptiongroup==1.3.1 |
| LOW | requirements/test-common-base.txt | 41 | pluggy==1.6.0 |
| LOW | requirements/test-common-base.txt | 61 | pytest-aiohttp==1.1.0 |
| LOW | requirements/test-common-base.txt | 81 | typing-extensions==4.15.0 |
| LOW | requirements/doc.txt | 1 | # |
| LOW | requirements/doc.txt | 21 | # myst-parser |
| LOW | requirements/doc.txt | 41 | mdurl==0.1.2 |
| 62 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | aiohttp/web_ws.py | 596 | |
| LOW | aiohttp/worker.py | 63 | |
| LOW | aiohttp/multipart.py | 77 | |
| LOW | aiohttp/multipart.py | 180 | |
| LOW | aiohttp/web_response.py | 260 | |
| LOW | aiohttp/web_response.py | 296 | |
| LOW | aiohttp/web_response.py | 370 | |
| LOW | aiohttp/web_response.py | 539 | |
| LOW | aiohttp/web_response.py | 609 | |
| LOW | aiohttp/web_response.py | 697 | |
| LOW | aiohttp/client_ws.py | 384 | |
| LOW | aiohttp/web_exceptions.py | 499 | |
| LOW | aiohttp/web.py | 279 | |
| LOW | aiohttp/web.py | 426 | |
| LOW | aiohttp/web_protocol.py | 439 | |
| LOW | aiohttp/web_protocol.py | 581 | |
| LOW | aiohttp/client.py | 466 | |
| LOW | aiohttp/client.py | 1015 | |
| LOW | aiohttp/web_request.py | 293 | |
| LOW | aiohttp/web_request.py | 615 | |
| LOW | aiohttp/web_request.py | 677 | |
| LOW | aiohttp/client_proto.py | 115 | |
| LOW | aiohttp/web_runner.py | 273 | |
| LOW | aiohttp/payload.py | 122 | |
| LOW | aiohttp/payload.py | 1015 | |
| LOW | aiohttp/formdata.py | 83 | |
| LOW | aiohttp/connector.py | 380 | |
| LOW | aiohttp/connector.py | 457 | |
| LOW | aiohttp/connector.py | 636 | |
| LOW | aiohttp/connector.py | 678 | |
| LOW | aiohttp/connector.py | 1318 | |
| LOW | aiohttp/connector.py | 1425 | |
| LOW | aiohttp/connector.py | 1499 | |
| LOW | aiohttp/web_fileresponse.py | 288 | |
| LOW | aiohttp/_cookie_helpers.py | 167 | |
| LOW | aiohttp/_cookie_helpers.py | 266 | |
| LOW | aiohttp/helpers.py | 257 | |
| LOW | aiohttp/helpers.py | 409 | |
| LOW | aiohttp/http_parser.py | 167 | |
| LOW | aiohttp/http_parser.py | 319 | |
| LOW | aiohttp/http_parser.py | 616 | |
| LOW | aiohttp/http_parser.py | 738 | |
| LOW | aiohttp/http_parser.py | 802 | |
| LOW | aiohttp/http_parser.py | 885 | |
| LOW | aiohttp/cookiejar.py | 129 | |
| LOW | aiohttp/cookiejar.py | 175 | |
| LOW | aiohttp/cookiejar.py | 305 | |
| LOW | aiohttp/_websocket/helpers.py | 78 | |
| LOW | aiohttp/_websocket/reader_py.py | 194 | |
| LOW | aiohttp/_websocket/reader_py.py | 345 | |
| LOW | aiohttp/_websocket/reader_c.py | 194 | |
| LOW | aiohttp/_websocket/reader_c.py | 345 | |
| LOW | tests/test_client_session.py | 585 | |
| LOW | tests/test_client_middleware.py | 285 | |
| LOW | tests/test_client_middleware.py | 319 | |
| LOW | tests/test_client_ws.py | 485 | |
| LOW | tests/test_client_ws.py | 519 | |
| LOW | tests/test_client_ws.py | 551 | |
| LOW | tests/test_proxy.py | 228 | |
| LOW | tests/test_proxy.py | 314 | |
| 10 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | aiohttp/web_urldispatcher.py | 0 | return a dict with additional info useful for introspection |
| HIGH | aiohttp/web_urldispatcher.py | 0 | return a dict with additional info useful for introspection |
| HIGH | aiohttp/web_urldispatcher.py | 0 | return a dict with additional info useful for introspection |
| HIGH | aiohttp/abc.py | 0 | return a dict with additional info useful for introspection |
| HIGH | tests/test_client_middleware.py | 0 | test that middleware can update request body using update_body method. |
| HIGH | tests/test_client_middleware.py | 0 | test that middleware can update request body using update_body method. |
| HIGH | tests/test_client_middleware.py | 0 | test that middleware can update request body using update_body method. |
| HIGH | tests/test_client_middleware.py | 0 | test that middleware can update request body using update_body method. |
| HIGH | examples/web_srv.py | 0 | \ type {url}/hello/john {url}/simple or {url}/change_body in browser url bar |
| HIGH | examples/web_srv_route_table.py | 0 | \ type {url}/hello/john {url}/simple or {url}/change_body in browser url bar |
| HIGH | examples/web_srv_route_deco.py | 0 | \ type {url}/hello/john {url}/simple or {url}/change_body in browser url bar |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | aiohttp/helpers.py | 891 | self._name = module + "." + name # type: ignore[possibly-undefined] |
| HIGH | tests/test_benchmarks_web_fileresponse.py | 137 | return resp # type: ignore[possibly-undefined] |
| HIGH | tests/test_client_functional.py | 5401 | "av-profile=null; Domain=.amazon.it; " |
| HIGH | tests/test_benchmarks_http_websocket.py | 54 | b'8","result":{"name":null,"id":"shellyplugus-c049ef8c30e4","mac":"C049EF8C30E' |
| HIGH | tests/test_benchmarks_http_websocket.py | 56 | b'4b5d4f","ver":"1.1.0","app":"PlugUS","auth_en":false,"auth_domain":null}}' |
| HIGH | docs/code/client_middleware_cookbook.py | 32 | return resp # type: ignore[possibly-undefined] |
| HIGH | docs/code/client_middleware_cookbook.py | 69 | return resp # type: ignore[possibly-undefined] |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | aiohttp/web_ws.py | 530 | except Exception as exc: |
| LOW | aiohttp/web_ws.py | 560 | except Exception as exc: |
| LOW | aiohttp/web_ws.py | 641 | except Exception as exc: |
| LOW | aiohttp/worker.py | 56 | except Exception: |
| LOW | aiohttp/worker.py | 125 | except Exception: |
| LOW | aiohttp/multipart.py | 1171 | except Exception as exc: |
| LOW | aiohttp/client_ws.py | 340 | except Exception as exc: |
| LOW | aiohttp/client_ws.py | 358 | except Exception as exc: |
| LOW | aiohttp/client_ws.py | 431 | except Exception as exc: |
| LOW | aiohttp/streams.py | 208 | except Exception: |
| LOW | aiohttp/streams.py | 232 | except Exception: |
| LOW | aiohttp/streams.py | 582 | except Exception: |
| MEDIUM | aiohttp/streams.py | 44 | def __anext__(self) -> _T: |
| LOW | aiohttp/web_protocol.py | 569 | except Exception as exc: |
| LOW | aiohttp/web_protocol.py | 691 | except Exception as exc: |
| LOW | aiohttp/client_proto.py | 150 | except Exception as underlying_exc: |
| LOW | aiohttp/client_proto.py | 326 | except Exception as underlying_exc: |
| LOW | aiohttp/client_reqrep.py | 1411 | except Exception as underlying_exc: |
| LOW | aiohttp/web_log.py | 223 | except Exception: |
| LOW | aiohttp/formdata.py | 142 | except Exception as exc: |
| LOW | aiohttp/http_parser.py | 508 | except Exception as underlying_exc: |
| LOW | aiohttp/http_parser.py | 1129 | except Exception: |
| LOW | aiohttp/_websocket/reader_py.py | 187 | except Exception as exc: |
| LOW | aiohttp/_websocket/reader_c.py | 187 | except Exception as exc: |
| LOW | tests/test_client_session.py | 1224 | except Exception: |
| LOW | tests/test_web_exceptions.py | 166 | except Exception as exc: |
| MEDIUM | examples/client_ws.py | 31 | print("Error during receive %s" % ws.exception()) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | aiohttp/payload.py | 624 | # Check if we're done writing |
| LOW | aiohttp/connector.py | 1284 | # Check if uvloop is being used, which supports TLS in TLS, |
| LOW | aiohttp/client_middleware_digest_auth.py | 376 | # Check if request starts with space URL |
| LOW | aiohttp/client_middleware_digest_auth.py | 467 | # Check if we need to authenticate |
| LOW | aiohttp/cookiejar.py | 280 | # Check if the cookie hasn't been re-added to the heap |
| LOW | tests/test_client_middleware.py | 406 | # Check if token needs refresh |
| LOW | tests/test_payload.py | 1268 | # Write file in executor |
| LOW | tests/test_payload.py | 1272 | # Open file in executor |
| LOW | tests/test_payload.py | 1333 | # Open the file and create payload |
| LOW | tests/test_payload.py | 1341 | # Read the file (simulating first request) |
| LOW | tests/test_payload.py | 1292 | # Write file in executor |
| LOW | tests/test_payload.py | 1300 | # Open file in executor |
| LOW | examples/token_refresh_middleware.py | 53 | # Check if another coroutine already refreshed the token |
| LOW | examples/token_refresh_middleware.py | 203 | # Check if token exists and is not expired |
| LOW | examples/basic_auth_middleware.py | 68 | # Check if Authorization header is present |
| LOW | examples/combined_middleware.py | 140 | # Check if we should retry |
| LOW | examples/retry_middleware.py | 69 | # Check if we should retry |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_web_app.py | 340 | |
| MEDIUM | tests/test_client_request.py | 1903 | |
| MEDIUM | tests/test_run_app.py | 135 | |
| MEDIUM | tests/test_run_app.py | 1032 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_client_middleware.py | 299 | # Step 0: No auth, request client ID |
| LOW | tests/test_client_middleware.py | 306 | # Step 1: Has session, request credentials |
| LOW | tests/test_client_middleware.py | 313 | # Step 2: Has challenge response, authenticate |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | aiohttp/compression_utils.py | 133 | # Everything not explicitly listed in the Protocol we just pass through |
| MEDIUM | tests/test_connector.py | 2815 | """Delay resolve() task in order to test cancellation.""" |
| MEDIUM | tests/test_client_ws_functional.py | 1400 | # The test harness will cleanup the unclosed websocket |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | aiohttp/client_middleware_digest_auth.py | 203 | Build digest authorization header for the current challenge. Args: method: The HTTP method |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docs/code/client_middleware_cookbook.py | 124 | # WARNING: This is a simplified example for demonstration purposes only. |
| MEDIUM | examples/token_refresh_middleware.py | 13 | Note: This is a simplified example for demonstration purposes. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | docs/conf.py | 410 | # ------------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | examples/fake_server.py | 73 | return web.json_response({"name": "John Doe", "id": "12345678901234567"}) |