2684 Commits

Author SHA1 Message Date
Adam Hopkins
7827b1b41d
Add Request properties for HTTP method info () 2022-08-10 21:12:09 +03:00
Adam Hopkins
8e9342e188
Warn on duplicate route names () 2022-08-10 20:36:47 +03:00
Adam Hopkins
2f6f2bfa76
Rename code of conduct 2022-08-02 13:56:53 +03:00
Ryu Juheon
dee09d7fff
style: add some type hints () 2022-08-02 08:47:59 +03:00
Adam Hopkins
9cf38a0a83
MERGEBACK () ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Zhiwei Liang <zhi.wei.liang@outlook.com>
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
2022-07-31 15:50:46 +03:00
Adam Hopkins
3def3d3569
Use path.parts instead of match () 2022-07-31 12:54:42 +03:00
Adam Hopkins
e100a14fd4
Use pathlib for path resolution () 2022-07-31 08:49:02 +03:00
Adam Hopkins
2fa28f1711
Fix dotted test 2022-07-28 10:07:30 +03:00
Néstor Pérez
9d415e4ec6
Prevent directory traversion with static files ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Zhiwei Liang <zhi.wei.liang@outlook.com>
2022-07-28 09:45:45 +03:00
Tim Gates
312ab298fd
docs: Fix a few typos ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-07-24 22:47:39 +03:00
Zhiwei
2fc21ad576
Replace Unsupported Python Version Number from the Contributing Doc ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-07-24 22:33:05 +03:00
Zhiwei
8f6c87c3d6
Fix Test Cases: test_http for Py3.9+, test_json_response_json for ujson 5.4.0+, and test_zero_downtime; Test Case Type Annotations () 2022-07-24 22:07:54 +03:00
Adam Hopkins
4429e76532
Add to changelog v22.6.0 2022-06-30 12:52:27 +03:00
Michael Azimov
e4be70bae8
Add custom loads function ()
Co-authored-by: Zhiwei <chihwei.public@outlook.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-29 23:39:21 +03:00
Adam Hopkins
13d5a44278
Release 22.6 () 2022-06-28 15:25:46 +03:00
Adam Hopkins
aba333bfb6
Improve API docs () 2022-06-28 10:53:03 +03:00
Adam Hopkins
b59da498cc
HTTP/3 Support () 2022-06-27 11:19:26 +03:00
Zhiwei
70382f21ba
Fix and improve file cache control header calculation () 2022-06-26 23:11:48 +03:00
Néstor Pérez
0e1bf89fad
Add missing spaces in CLI error message () 2022-06-26 10:38:35 +03:00
Aidan Timson
6c48c8b3ba
Fix for running in pythonw ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-19 14:48:06 +03:00
Zhiwei
d1c5e8003b
Fix test_cli and test_cookies () 2022-06-19 04:43:12 +03:00
Adam Hopkins
ce926a34f2
Add Request contextvars ()
* Add Request contextvars

* Add missing contextvar setter

* Move location of context setter
2022-06-16 22:57:02 +03:00
Zhiwei
a744041e38
File Cache Control Headers Support ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-16 16:24:39 +03:00
Mary
2f90a85df1
feat(type): extend ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-16 15:38:13 +03:00
Adam Hopkins
a411bc06e3
Resolve typing of stacked route definitions () 2022-06-16 15:15:20 +03:00
Adam Hopkins
1668e1532f
Move verbosity filtering to logger () 2022-06-16 12:35:49 +03:00
Vetési Zoltán
b87982769f
Trigger http.lifecycle.request signal in ASGI mode ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-16 11:55:50 +03:00
Ryu Juheon
65b53a5f3f
style: add msg in `task.cancel` ()
* style: add msg in ``task.cancel``

* style: apply isort

* fix: use else statement

* fix: use tuple

* fix: rollback for test

* fix: rollback like previous change

* fix: add ``=``

Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-16 10:55:20 +03:00
Zhiwei
49789b7841
Clean Up Black and Isort Config ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-05-26 12:48:32 +03:00
Amitay
c249004c30
fixed manual to match current Sanic app name policy ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-05-26 10:16:24 +03:00
Ashley Sommer
4ee2e57ec8
Properly catch websocket CancelledError in websocket handler in Python 3.7 () 2022-05-23 22:47:05 +03:00
Néstor Pérez
86ae5f981c
refactor: consistent exception naming ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-05-12 20:39:35 +03:00
Adam Hopkins
2bfa65e0de
Current release mergeback () 2022-05-11 09:37:33 +03:00
Adam Hopkins
293278bb08
Resolve warning issue with error handler mismatch warning () 2022-05-11 09:36:05 +03:00
Michael Azimov
5d683c6ea4
Expose scope parameter in request object ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-04-26 17:25:29 +03:00
Stephen Sadowski
78b6723149
Preserve blank form values for urlencoded forms (option) ()
* task(request.form): Add tests for blank values

* fix(request): abstract form property to implement get_form(), allow for preserving of blanks

* fix(request): hinting for parsed_form

* fix(request): typing for parsed_files

* fix(request): ignore type assumption

* fix(request): mypy typechecking caused E501 when type set to ignore

* fix(request): mypy is too stupid to parse continuations

* fix(request): formatting

* fix(request): fix annotation and return for get_form()

* fix(request): linting, hinting
2022-04-24 23:01:35 +03:00
Ryu juheon
3a6cc7389c
feat: easier websocket interface annotation () 2022-04-24 13:32:13 +03:00
Adam Hopkins
cc97287f8e
Add fall back for Windows even loop fetching () v22.3.1 2022-04-17 12:25:41 +03:00
Adam Hopkins
00218aa9f2
22.3 Internal version bumps () v22.3.0 2022-03-31 14:30:30 +03:00
Adam Hopkins
874718db94
Bump version and 22.3 changelog () 2022-03-30 15:09:45 +03:00
Javier Marcet
bb4474897f
Fix "DeprecationWarning: There is no current event loop" ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-30 09:40:30 +03:00
Adam Hopkins
0cb342aef4
Better exception for bad URL parse () 2022-03-25 00:22:12 +02:00
Ashley Sommer
030987480c
Add config option to skip Touchup step, for debugging purposes ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-24 13:52:05 +02:00
Robert Schütz
f6fdc80b40
allow multidict version 6 ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-24 00:38:45 +02:00
Jonathan Vargas
361c242473
remove error_logger on websockets ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-23 16:25:19 +02:00
André Ericson
32962d1e1c
Fixing typing for ListenerMixin.listener ()
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-23 15:34:33 +02:00
Adam Hopkins
6e0a6871b5
Upgrade tests for sanic-routing changes () 2022-03-23 13:43:36 +02:00
Adam Hopkins
0030425c8c
Conditionally inject CLI arguments into factory () 2022-03-23 12:00:41 +02:00
Adam Hopkins
c9dbc8ed26
Remove loop as required listener arg () 2022-03-23 11:02:39 +02:00
Callum
44b108b564
Changes to CLI ()
Co-authored-by: Callum Fleming <howzitcal@zohomail.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-23 10:30:41 +02:00