Commit Graph

  • 2adcc72e06 Response middleware ran by async request.respond(). L. Kärkkäinen 2020-03-09 16:59:36 +0200
  • 2b63d2bed4 Import ordering L. Kärkkäinen 2020-03-09 16:15:08 +0200
  • 9dc2ec966c Linting L. Kärkkäinen 2020-03-09 15:44:06 +0200
  • a9d984e2f8 Cleanup processed_headers some more. L. Kärkkäinen 2020-03-09 15:28:02 +0200
  • 32ee5399d9 Duplicate set-cookie headers were being produced. L. Kärkkäinen 2020-03-09 15:09:31 +0200
  • a0e61ae5c6 35 % speedup in HTTP/1.1 response formatting (not so much overall effect). L. Kärkkäinen 2020-03-09 14:35:06 +0200
  • c86c29e239 Avoid special handling of StreamingHTTPResponse. L. Kärkkäinen 2020-03-08 17:46:31 +0200
  • 5351cda979 Unify response header processing of ASGI and asyncio modes. L. Kärkkäinen 2020-03-08 17:33:56 +0200
  • d348bb4ff4 Refactoring and cleanup. L. Kärkkäinen 2020-03-08 16:56:22 +0200
  • 990ac52a1a Header values should be strictly ASCII but both UTF-8 and Latin-1 exist. Use UTF-8B to cope with all. L. Kärkkäinen 2020-03-08 14:17:38 +0200
  • cbfeb1c99c Fix chunked mode crash. L. Kärkkäinen 2020-03-08 12:23:22 +0200
  • 4c34508695 Merge branch 'master' into streaming L. Kärkkäinen 2020-03-06 16:30:58 +0200
  • 319388d78b
    Remove the old request context API deprecated in 19.9. Use request.ctx instead. (#1801) L. Kärkkäinen 2020-03-06 07:40:46 +0200
  • 730de6afda Default to no maximum request size for streaming handlers. L. Kärkkäinen 2020-03-04 15:25:50 +0200
  • eb66621544 json takes str, not bytes L. Kärkkäinen 2020-03-04 13:21:49 +0200
  • d8d7df9e22 json takes str, not bytes L. Kärkkäinen 2020-03-04 13:20:30 +0200
  • 0737f31410 Remove the old request context API deprecated in 19.9. Use request.ctx instead. L. Kärkkäinen 2020-03-04 12:37:42 +0200
  • b28f0904e2 More coverage L. Kärkkäinen 2020-03-04 12:32:34 +0200
  • 3a3e567a71 isort tests L. Kärkkäinen 2020-03-04 12:27:21 +0200
  • dc6b4925df Add test for new API. L. Kärkkäinen 2020-03-04 12:15:34 +0200
  • 2e1f5bef83 Add test for new API. L. Kärkkäinen 2020-03-04 12:15:34 +0200
  • 37b017e485 Compatibility and deprecations for Sanic 20.3 in preparation of the streaming branch. L. Kärkkäinen 2020-03-04 11:49:47 +0200
  • cbabe7ec4a Avoid error messages on PayloadTooLarge. L. Kärkkäinen 2020-03-02 17:06:18 +0200
  • c2e5674a73 Add a missing check in case of close_if_idle on a dead connection. L. Kärkkäinen 2020-03-02 16:55:48 +0200
  • 9c21457b58 Always try to consume request body, plus minor cleanup. L. Kärkkäinen 2020-03-02 16:34:21 +0200
  • 85d58d7b2b Messages further tuned. L. Kärkkäinen 2020-03-02 15:36:43 +0200
  • 96a8b5c3a0 Init http.response = None L. Kärkkäinen 2020-03-02 15:33:23 +0200
  • e73f26b0a3 More specific error messages on Payload Too Large. L. Kärkkäinen 2020-03-02 15:32:12 +0200
  • 50cca39185 Stricter handling of request header size L. Kärkkäinen 2020-03-02 14:54:54 +0200
  • 9baa2419cd Merge branch 'master' into streaming L. Kärkkäinen 2020-03-02 14:05:15 +0200
  • ce71514d71
    bump httpx dependency version to 0.11.1 (#1794) Subham Roy 2020-03-02 01:12:11 +0530
  • 7833d70d9e
    Allow multiple workers on MacOS with Python 3.8. Fallback to single worker on Windows until pickling can be fixed. (#1798) L. Kärkkäinen 2020-03-01 21:41:10 +0200
  • cd6d78d16e Allow multiple workers on MacOS with Python 3.8. Fallback to single worker on Windows until pickling can be fixed. L. Kärkkäinen 2020-03-01 18:40:42 +0200
  • 7e93ee102c Typing L. Kärkkäinen 2020-03-01 18:21:09 +0200
  • 08353637fd Linter 'n fixes L. Kärkkäinen 2020-03-01 17:40:01 +0200
  • 31a8706b42 Fix a middleware cancellation handling test with py38. L. Kärkkäinen 2020-03-01 17:10:04 +0200
  • d918655bbb Py 3.8 check for deprecated loop argument. L. Kärkkäinen 2020-03-01 16:57:03 +0200
  • 0712026e14 Remove unused code. L. Kärkkäinen 2020-03-01 16:36:42 +0200
  • 1c42a5ef4e Minor fixes. L. Kärkkäinen 2020-03-01 16:34:58 +0200
  • 5a96996003 A test was missing that body_init/body_push/body_finish are never called. Rewritten using receive_body and case switching to make it fail if bypassed. L. Kärkkäinen 2020-03-01 16:34:20 +0200
  • c0a0b50bc1 Remove unnecessary variables, optimise performance. L. Kärkkäinen 2020-03-01 15:38:18 +0200
  • fc16594138 Disable custom protocol test L. Kärkkäinen 2020-03-01 14:53:04 +0200
  • 5086076590 Linter L. Kärkkäinen 2020-03-01 13:21:02 +0200
  • f8298939c0 Merge branch 'master' into streaming L. Kärkkäinen 2020-03-01 13:13:39 +0200
  • 2840e4cfc8 Everything but CustomServer OK. L. Kärkkäinen 2020-03-01 13:10:53 +0200
  • 85be5768c8 Remove keep-alive header from responses. First of all, it should say timeout=<value> which wasn't the case with existing implementation, and secondly none of the other web servers I tried include this header. L. Kärkkäinen 2020-03-01 12:15:16 +0200
  • 7f41c5fa6b Even more cleanup and error checking, 8 failing tests. L. Kärkkäinen 2020-02-29 18:59:19 +0200
  • a553e64bbd Much cleanup, 12 failing... L. Kärkkäinen 2020-02-29 16:50:59 +0200
  • 57202bfa89 Code cleanup, 14 tests failing. L. Kärkkäinen 2020-02-29 14:18:31 +0200
  • 8a1baeb9d5 Terminate check_timeouts once connection_task finishes. L. Kärkkäinen 2020-02-28 19:25:03 +0200
  • 85b1ad5732 Major refactoring of HTTP protocol handling (new module http.py added), all requests made streaming. A few compatibility issues and a lot of cleanup to be done remain, 16 tests failing. L. Kärkkäinen 2020-02-28 18:43:36 +0200
  • 85c67a0014 Remove tests using the deprecated get_headers function that can no longer be supported. Chunked mode is now autodetected, so do not put content-length header if chunked mode is preferred. L. Kärkkäinen 2020-02-28 18:40:44 +0200
  • d5971377c5 Remove StreamBuffer tests because the type is about to be removed. L. Kärkkäinen 2020-02-28 17:38:09 +0200
  • b2476bd7d7 Better testing error messages on protocol errors. L. Kärkkäinen 2020-02-28 17:26:31 +0200
  • 6d8f5988d3 Let black f*ckup the layout L. Kärkkäinen 2020-02-26 19:27:22 +0200
  • 29c6f3c49f Entirely remove request body queue. L. Kärkkäinen 2020-02-26 19:23:55 +0200
  • b87364bd91 All tests OK. L. Kärkkäinen 2020-02-26 19:00:38 +0200
  • 3929dff69e force full path to certs using {toxinidir} which is project root eric-spitler 2020-02-26 16:50:29 +0000
  • 6b9f0ece7c Misc. cleanup, down to 4 failing tests. L. Kärkkäinen 2020-02-26 14:24:45 +0200
  • 42d86bcd5a Rewritten request body parser. L. Kärkkäinen 2020-02-26 13:03:33 +0200
  • 6c99235839 add tox-run-before to tox deps eric-spitler 2020-02-26 08:35:49 +0000
  • b4bb1290c1 remove hard-coded verify=False from test-client eric-spitler 2020-02-26 07:14:43 +0000
  • 16961fab9d
    Use f-strings instead of str.format() (#1793) Mykhailo Yusko 2020-02-25 22:01:13 +0200
  • 5d273fe922 bump httpx dependency version to 0.11.1 syfluqs 2020-02-25 07:18:26 +0530
  • 565568c794 Use f-strings instead of str.format() Mike Yusko 2020-02-24 20:36:32 +0200
  • ef4f233fba Add back streaming requests. L. Kärkkäinen 2020-02-24 17:27:28 +0200
  • 3d05e1ec07 Change of test: don't require early bad request error but only after CRLF-CRLF. L. Kärkkäinen 2020-02-24 17:27:04 +0200
  • f6a0b4a497 Async http protocol loop. L. Kärkkäinen 2020-02-24 16:23:53 +0200
  • 861e87347a
    Fix #1788 incorrect url_for for routes with hosts, added tests. (#1789) L. Kärkkäinen 2020-02-21 19:10:22 +0200
  • f609a4850f Cleanup of code and avoid mixing streaming responses. L. Kärkkäinen 2020-02-21 17:51:38 +0200
  • fe64a2764d Make all requests streaming and preload body for non-streaming handlers. L. Kärkkäinen 2020-02-21 13:28:50 +0200
  • 6279eac3d1 Streaming request by async for. L. Kärkkäinen 2020-02-21 10:51:58 +0200
  • 091c882b3b Compatibility with Python 3.6. L. Kärkkäinen 2020-02-21 10:03:42 +0200
  • d4cba11899 Add test for async handler of payload too large. L. Kärkkäinen 2020-02-21 09:37:41 +0200
  • 3d3a8876cd Protocol errors (e.g. Payload Too Large) did not support async error handlers. #1785 L. Kärkkäinen 2020-02-21 09:24:15 +0200
  • 8bbbf8adb3 Remove debug print L. Kärkkäinen 2020-02-20 18:30:20 +0200
  • c83eda5f34 Linter L. Kärkkäinen 2020-02-20 18:15:58 +0200
  • 3d6e6b4367 Fix #1788 incorrect url_for for routes with hosts, added tests. L. Kärkkäinen 2020-02-20 18:14:48 +0200
  • 91f6abaa81
    Fix simple typo: viewes -> views (#1783) Tim Gates 2020-02-18 03:16:58 +1100
  • d380b52f9a
    Merge pull request #1784 from gdub/changelog_correction Eli Uriegas 2020-02-15 17:09:41 -0800
  • d656a06a19 Corrected changelog for docs move of MD to RST (#1691). Gary Wilson Jr 2020-02-11 11:45:56 -0600
  • 36b885bc5c
    Fix simple typo: viewes -> views Tim Gates 2020-02-11 19:26:08 +1100
  • 258dbee3b9
    Py38 tox env (#1752) Adam Hopkins 2020-02-05 21:17:55 +0200
  • ecd16e6ca2 Add --unix support when sanic is run as module. L. Kärkkäinen 2020-02-05 17:06:14 +0200
  • c0e0999d3c Rename a to addr, leave client empty for unix sockets. L. Kärkkäinen 2020-02-05 16:55:47 +0200
  • 39dd8f7684
    🚨 fix linter issues Harsha Narayana 2020-02-04 20:00:58 +0530
  • 4ad9501a1d
    🚨 fix linter warnings for unused imports Harsha Narayana 2020-02-04 19:44:05 +0530
  • f0736c4314
    fix unit tests and linter issues Harsha Narayana 2020-02-04 19:35:43 +0530
  • da5f21c944 add some docstrings for the proposed websocket_handler Martin Ortbauer 2020-02-03 18:00:00 +0100
  • 6b9287b076
    Update README re: experimental support for Windows (#1778) Sudeep Mandal 2020-02-03 11:27:56 -0500
  • 867e151fb8
    Unit tests for blueprint.route host paramter set to list. Damian Jimenez 2020-02-02 04:05:22 -0600
  • 6de1bd5e5e
    enable aiosignal dependency and add additional mechanism to wrap the signal on current code Harsha Narayana 2020-02-01 23:33:04 +0530
  • d81e0e5819
    add initial signals class definitions Harsha Narayana 2020-01-22 01:30:01 +0530
  • de969d85f3
    Update README re: experimental support for Windows Sudeep Mandal 2020-01-30 22:54:26 -0500
  • 2d151c3412 create a separate make_websoket_handler method Martin Ortbauer 2020-01-30 17:43:53 +0100
  • 61c7299bf7
    Bug fix for host parameter issue with lists Damian Jimenez 2020-01-29 21:44:09 -0600
  • dac0514441 Code cleanup in file responses (#1769) L. Kärkkäinen 2020-01-27 08:08:34 +0200
  • e4dd73bef3 only wraps Andrey Petukhov 2020-01-24 09:11:33 +0300
  • b1b3b410bb test Andrey Petukhov 2020-01-24 09:05:38 +0300
  • 3f320d1929 Merge branch 'master' of github.com:huge-success/sanic into url_for Andrey Petukhov 2020-01-24 09:01:01 +0300