Commit Graph

  • b7d4121586 Update static_files.md (#1672) Lagicrus 2019-09-11 22:37:14 +0100
  • 6d1996c449 <any type>-to-str response autoconversion limited to sanic.response.text() only. L. Kärkkäinen 2019-09-11 12:24:33 +0300
  • 13a2f487f7 Body encoding sanitation, first pass. - body/data type autodetection fixed. - do not repr(body).encode() bytes-ish values. - support __html__ and _repr_html_ in sanic.response.html(). L. Kärkkäinen 2019-09-11 12:04:44 +0300
  • 5e86cce761 Merge branch 'headerformat' into bodybytes L. Kärkkäinen 2019-09-11 11:24:53 +0300
  • bd1e5691c6 Update static_files.md Lagicrus 2019-09-10 21:46:04 +0100
  • dda029657b Fix receive_request return value handling (should probably use exceptions instead). L. Kärkkäinen 2019-09-10 18:43:58 +0300
  • 870b6012a1 Optimized to run faster. L. Kärkkäinen 2019-09-10 17:31:09 +0300
  • 1acd1d7d88 Content-type fixes. L. Kärkkäinen 2019-09-10 14:58:22 +0300
  • 53f088e0cf Faster and more correct reload and exit. L. Kärkkäinen 2019-09-09 18:33:15 +0300
  • 87bdb90da2 Rework reloader. L. Kärkkäinen 2019-09-09 18:21:33 +0300
  • c4a4fc6838 Autoreloader should now work with any number of workers, on any OS. L. Kärkkäinen 2019-09-09 16:35:12 +0300
  • 1c7d404853 Merge current master and lexhung reloader fixes into trio L. Kärkkäinen 2019-09-09 15:18:22 +0300
  • d8581ce277 Merge remote-tracking branch 'lexhung/master' into reloader L. Kärkkäinen 2019-09-09 15:12:59 +0300
  • e0ce6d26ea Cleanup and error handling. L. Kärkkäinen 2019-09-09 15:09:45 +0300
  • af846949de Multiprocessing/server rewrite fully in async context with better signal handling. L. Kärkkäinen 2019-09-09 12:21:57 +0300
  • fbcd4b9767 Sanic does not support Python 3.5 and won't need this code. (#1670) L. Kärkkäinen 2019-09-09 00:08:34 +0300
  • 491ce25ab4 Major cleanup; rewrote H1StreamRequest and NewStreamingHTTPResponse into a combined class protocol.H1Stream; added error handling. L. Kärkkäinen 2019-09-08 20:45:02 +0300
  • fff519fae4 Wtf linter L. Kärkkäinen 2019-09-08 11:58:31 +0300
  • 82bc2cfba9 Replace encode_body with faster implementation based on f-string. L. Kärkkäinen 2019-09-08 11:49:51 +0300
  • 17c5e28727
    Merge pull request #1665 from snguyenthanh/fix-changelog-link 7 2019-09-06 11:07:41 -0700
  • 84539fc605 NewStreamingResponse only sends headers on write. L. Kärkkäinen 2019-09-06 19:11:29 +0300
  • 1b0b5d6766 Merge branch 'headerformat' into trio L. Kärkkäinen 2019-09-06 19:02:43 +0300
  • 8e97f2828e Fix that hack. L. Kärkkäinen 2019-09-06 18:45:11 +0300
  • 8ed885b875 Hacks to make it run on Windows. L. Kärkkäinen 2019-09-06 17:53:57 +0300
  • a757f88352 ImportError should suffice here as well. L. Kärkkäinen 2019-09-06 07:54:07 +0300
  • 4b61adb5dc Fix previous commit... L. Kärkkäinen 2019-09-06 07:53:19 +0300
  • a10406789c Request no longer needs __bool__. L. Kärkkäinen 2019-09-06 07:29:06 +0300
  • 4bb0eab9a0 Only import json if ujson is not available. L. Kärkkäinen 2019-09-06 07:20:32 +0300
  • ec1b0a6d7f Merge branch 'master' into trio L. Kärkkäinen 2019-09-05 18:09:39 +0300
  • 69ddbca91f Linter 💣🌟💀 L. Kärkkäinen 2019-09-05 17:48:20 +0300
  • e21e2ae73b Have server fill in connection info instead of request asking the socket. L. Kärkkäinen 2019-09-05 17:40:29 +0300
  • dcffda22ff Proxy properties cleanup. Slight changes of semantics. SERVER_NAME now overrides everything. L. Kärkkäinen 2019-09-05 16:32:59 +0300
  • c27b824fd3 Sanic does not support Python 3.5 and won't need this code. L. Kärkkäinen 2019-09-05 12:09:25 +0300
  • 7dc683913f format_http1_response L. Kärkkäinen 2019-09-05 11:43:23 +0300
  • 9966a13724 Linter L. Kärkkäinen 2019-09-05 09:34:01 +0300
  • 5c0cbd9c17 Code readability. L. Kärkkäinen 2019-09-04 19:30:00 +0300
  • 628f71dd52 Updated docs about custom_context. L. Kärkkäinen 2019-09-04 19:28:17 +0300
  • d248dbb72b Linter L. Kärkkäinen 2019-09-04 17:51:59 +0300
  • 4537544fde HTTP1 header formatting moved to headers.format_headers and rewritten. L. Kärkkäinen 2019-09-04 17:15:32 +0300
  • 041555afa1 Linter L. Kärkkäinen 2019-09-04 16:13:54 +0300
  • 3e59ed94ac Renamed storage to request.custom_context with new API. L. Kärkkäinen 2019-09-04 15:55:37 +0300
  • b2ea924bf0 Minor cleanup to push_back() L. Kärkkäinen 2019-09-04 14:25:28 +0300
  • 2c5f0160b8 Response middleware for non-streaming responses. L. Kärkkäinen 2019-09-04 13:31:39 +0300
  • c1fd59bf1b Non-streaming handlers working on top of streaming requests. L. Kärkkäinen 2019-09-03 18:55:51 +0300
  • ef72028cd6 Make storage property public. L. Kärkkäinen 2019-09-03 17:15:36 +0300
  • c9a8232eb9 Bugfixes L. Kärkkäinen 2019-09-03 15:37:07 +0300
  • 6bd83781ce Refactor to always initialize storagedict. L. Kärkkäinen 2019-09-03 15:01:56 +0300
  • 0a8ff24a87 KeyError on request[] even if not yet initialized. L. Kärkkäinen 2019-09-03 14:54:17 +0300
  • 4f7f3b0ac9 Add __contains__, improved test coverage. L. Kärkkäinen 2019-09-03 14:40:23 +0300
  • d40a8b0c3e Implement dict-like API on request objects for custom data. L. Kärkkäinen 2019-09-03 14:24:35 +0300
  • 7031547a57 Streaming fixes, now request and response may be streamed. L. Kärkkäinen 2019-09-03 11:09:34 +0300
  • ec6707cd8b Streaming responses now working with HTTP/1. L. Kärkkäinen 2019-09-02 19:29:11 +0300
  • ff78e47ca0 Merge remote-tracking branch 'upstream/master' into bind_unix_and_ipv6 L. Kärkkäinen 2019-09-02 18:13:57 +0300
  • bf32a19515 Streamlined request handler logic. Sketching new streaming framework. L. Kärkkäinen 2019-09-02 18:09:16 +0300
  • e62b29ca44 Fix link to CHANGELOG in README.rst Son 2019-09-02 21:51:45 +0800
  • 1e4b1c4d1a Forwarded headers and otherwise improved proxy handling (#1638) L. Kärkkäinen 2019-09-02 16:50:56 +0300
  • 3548d6abde Linter #2 L. Kärkkäinen 2019-09-01 10:45:54 +0300
  • 8d813181d3 Linter L. Kärkkäinen 2019-09-01 10:38:25 +0300
  • 2a81f66b87 Add ASGI test. L. Kärkkäinen 2019-09-01 10:30:13 +0300
  • 502af27dce Forwarded headers' semantics tuning. L. Kärkkäinen 2019-09-01 10:14:40 +0300
  • c7bbd58e41 Add support for by=_proxySecret, updated docs, updated tests. L. Kärkkäinen 2019-08-31 18:19:59 +0300
  • b983cf4c84 Linter errors. L. Kärkkäinen 2019-08-31 15:01:24 +0300
  • 8f54aff218 Remove support for PROXIES_COUNT=-1. L. Kärkkäinen 2019-08-31 14:48:46 +0300
  • 7aff38df89 New defaults for PROXIES_COUNT and REAL_IP_HEADER, updated tests. L. Kärkkäinen 2019-08-31 14:32:16 +0300
  • 2a5683d52f Enable REAL_IP_HEADER parsing irregardless of PROXIES_COUNT setting. L. Kärkkäinen 2019-08-31 14:14:18 +0300
  • d9a1fa2630 Updated docs (work in progress). L. Kärkkäinen 2019-08-30 19:10:27 +0300
  • 7eab1dcfa3 Remove unnecessary or L. Kärkkäinen 2019-08-30 13:46:39 +0300
  • 95b7bc274d Add to avoid re-using the variable. Make a few raw strings non-raw. L. Kärkkäinen 2019-08-30 08:56:06 +0300
  • 9bc620d4a3 Get SSL SNI as protocol.servername. L. Kärkkäinen 2019-08-29 19:27:38 +0300
  • fac8c36f97 Protocol and SSL autodetection, cleanup. L. Kärkkäinen 2019-08-29 18:02:25 +0300
  • 183413a345 HTTP/2 support etc. L. Kärkkäinen 2019-08-29 13:11:46 +0300
  • ae91852cd5 check for already set asyncio event loop policy (#1637) Subham Roy 2019-08-28 22:00:23 +0530
  • c7c1a74f47 Linter L. Kärkkäinen 2019-08-28 14:46:57 +0300
  • b45f879e00 Refactor app to take unix= argument instead of unix:-prefixed host. Goin' fast @ unix-socket fixed. L. Kärkkäinen 2019-08-28 14:11:06 +0300
  • 67bdf4cbfd More pedantic UNIX socket implementation. L. Kärkkäinen 2019-08-28 13:31:17 +0300
  • d971549761 Linter L. Kärkkäinen 2019-08-28 11:14:48 +0300
  • 7c66e5f9cc Merge branch 'master' of github.com:huge-success/sanic L. Kärkkäinen 2019-08-28 10:56:41 +0300
  • 2760a904bb server.py switching (for testing) L. Kärkkäinen 2019-08-28 10:35:34 +0300
  • 26e43755b7 Allow auto_reload with multiple workers and use serve workers= argument instead of serve_multiple L. Kärkkäinen 2019-08-27 18:14:46 +0300
  • 94cc4c2fda Just cancel 'em straight away. L. Kärkkäinen 2019-08-27 18:11:28 +0300
  • 387287d16c Add quick termination of idle connections on shutdown. L. Kärkkäinen 2019-08-27 17:57:01 +0300
  • 2176c8178b A very minimal Trio-based HTTP server. L. Kärkkäinen 2019-08-27 16:54:43 +0300
  • 2011f3a0b2 PEP 594 has cgi module scheduled for deprecation in Python 3.8 (#1649) L. Kärkkäinen 2019-08-27 16:30:23 +0300
  • c928c9fe1a Partially working Trio server. L. Kärkkäinen 2019-08-26 14:53:16 +0300
  • 7cb05d87ff Remove unix socket on exit also with workers=1. L. Kärkkäinen 2019-08-24 13:06:40 +0300
  • 52451ad139 Cleaner unix socket removal. L. Kärkkäinen 2019-08-24 12:36:00 +0300
  • 8f57610329 Fix test of existing unix socket. L. Kärkkäinen 2019-08-24 12:06:36 +0300
  • 5dd77deccb Updated comments as well. L. Kärkkäinen 2019-08-23 18:07:55 +0300
  • 1377846876 Improved parse_content_header and added tests with Firefox and Chrome. L. Kärkkäinen 2019-08-23 15:47:36 +0300
  • 66fe375fb3 Revert "Unquote filenames also in normal mode." L. Kärkkäinen 2019-08-23 13:26:56 +0300
  • f11232cfd2 Linter L. Kärkkäinen 2019-08-23 13:11:31 +0300
  • 4f7e4dd0c8 Add tests for headers. Adapted from CPython parse_header tests with changes on the final test. L. Kärkkäinen 2019-08-23 12:35:14 +0300
  • bf0d502bcd Unquote filenames also in normal mode. L. Kärkkäinen 2019-08-23 12:18:48 +0300
  • 372957856e Do not support quoted-pair escapes. L. Kärkkäinen 2019-08-23 11:50:41 +0300
  • 7bc0816cc9 POC streaming response Alec Buckenheimer 2019-08-22 15:55:09 -0400
  • 9cb08e2138 Add return type hint. L. Kärkkäinen 2019-08-22 18:16:40 +0300
  • 228a31ee0a
    Merge pull request #1657 from huge-success/release-19.6.3 v19.6.3 7 2019-08-21 23:00:51 -0700
  • 8bf2bdff74 Bumping up version from 19.6.2 to 19.6.3 Yun Xu 2019-08-20 18:51:17 -0700
  • 41862eca61
    Merge pull request #1654 from huge-success/asgi-content-type 7 2019-08-13 12:30:40 -0700
  • 21307b397b release: 19.6.3 Yun Xu 2019-08-13 10:03:08 -0700