Aidan Timson
6c48c8b3ba
Fix for running in pythonw ( #2448 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-19 14:48:06 +03:00
Zhiwei
d1c5e8003b
Fix test_cli
and test_cookies
( #2479 )
2022-06-19 04:43:12 +03:00
Adam Hopkins
ce926a34f2
Add Request contextvars ( #2475 )
...
* 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 ( #2447 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-06-16 16:24:39 +03:00
Mary
2f90a85df1
feat(type): extend ( #2466 )
...
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 ( #2455 )
2022-06-16 15:15:20 +03:00
Adam Hopkins
1668e1532f
Move verbosity filtering to logger ( #2453 )
2022-06-16 12:35:49 +03:00
Vetési Zoltán
b87982769f
Trigger http.lifecycle.request signal in ASGI mode ( #2451 )
...
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
` ( #2416 )
...
* 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 ( #2449 )
...
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 ( #2461 )
...
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 ( #2463 )
2022-05-23 22:47:05 +03:00
Néstor Pérez
86ae5f981c
refactor: consistent exception naming ( #2420 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-05-12 20:39:35 +03:00
Adam Hopkins
2bfa65e0de
Current release mergeback ( #2454 )
2022-05-11 09:37:33 +03:00
Adam Hopkins
293278bb08
Resolve warning issue with error handler mismatch warning ( #2452 )
2022-05-11 09:36:05 +03:00
Michael Azimov
5d683c6ea4
Expose scope parameter in request object ( #2432 )
...
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) ( #2439 )
...
* 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 ( #2438 )
2022-04-24 13:32:13 +03:00
Adam Hopkins
cc97287f8e
Add fall back for Windows even loop fetching ( #2421 )
2022-04-17 12:25:41 +03:00
Adam Hopkins
00218aa9f2
22.3 Internal version bumps ( #2419 )
2022-03-31 14:30:30 +03:00
Adam Hopkins
874718db94
Bump version and 22.3 changelog ( #2418 )
2022-03-30 15:09:45 +03:00
Javier Marcet
bb4474897f
Fix "DeprecationWarning: There is no current event loop" ( #2390 )
...
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 ( #2415 )
2022-03-25 00:22:12 +02:00
Ashley Sommer
030987480c
Add config option to skip Touchup step, for debugging purposes ( #2361 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-24 13:52:05 +02:00
Robert Schütz
f6fdc80b40
allow multidict version 6 ( #2396 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-24 00:38:45 +02:00
Jonathan Vargas
361c242473
remove error_logger on websockets ( #2373 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-23 16:25:19 +02:00
André Ericson
32962d1e1c
Fixing typing for ListenerMixin.listener ( #2376 )
...
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 ( #2405 )
2022-03-23 13:43:36 +02:00
Adam Hopkins
0030425c8c
Conditionally inject CLI arguments into factory ( #2402 )
2022-03-23 12:00:41 +02:00
Adam Hopkins
c9dbc8ed26
Remove loop as required listener arg ( #2414 )
2022-03-23 11:02:39 +02:00
Callum
44b108b564
Changes to CLI ( #2401 )
...
Co-authored-by: Callum Fleming <howzitcal@zohomail.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-23 10:30:41 +02:00
Adam Hopkins
2a8e91052f
Add two new events on the reloader process ( #2413 )
2022-03-22 23:29:39 +02:00
Bluenix
0c9df02e66
Add a docstring to Request.respond()
( #2409 )
...
Co-authored-by: Ryu juheon <saidbysolo@gmail.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-03-14 13:10:49 +02:00
Arie Bovenberg
7523e87937
remove overlapping slots from app.Sanic, fix broken slots inherit of HTTPResponse ( #2387 )
2022-02-24 17:45:23 +02:00
Bluenix
d4fb44e986
Document middleware on_request
and on_response
( #2398 )
2022-02-13 21:08:08 +02:00
Ryu juheon
68b654d981
fix(tasks): newly assigned `None
` in registry ( #2381 )
2022-02-08 08:33:09 +02:00
Adam Hopkins
88bc6d8966
Upgrade black and isort changes ( #2397 )
2022-02-02 10:41:55 +02:00
Adam Hopkins
ac388d644b
Downgrade warnings to backwater debug messages ( #2382 )
2022-01-19 14:26:45 +02:00
Ryu juheon
bb517ddcca
fix: deprecation warning in `asyncio.wait
` ( #2383 )
2022-01-19 08:09:17 +02:00
Adam Hopkins
b8d991420b
Sanic multi-application server ( #2347 )
2022-01-16 09:03:04 +02:00
Adam Hopkins
4a416e177a
Updates to CLI help messaging ( #2372 )
2022-01-14 00:54:51 +02:00
Adam Hopkins
8dfa49b648
22.3 Deprecations and changes ( #2362 )
2022-01-12 16:28:43 +02:00
Adam Hopkins
8b0eaa097c
Change back to codecov ( #2363 )
2022-01-09 12:22:09 +02:00
Sergey Rybakov
101151b419
Add credentials property to Request objects ( #2357 )
2022-01-06 19:14:52 +02:00
Adam Hopkins
4669036f45
Mergeback of 21.12.1 ( #2358 )
...
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
Co-authored-by: Ryu juheon <saidbysolo@gmail.com>
2022-01-06 12:40:52 +02:00
raphaelauv
9bf9067c99
[FIX] README ASGI link ( #2350 )
2022-01-04 06:39:59 +02:00
Adam Hopkins
a7bc8b56ba
Set dev version
2021-12-26 22:19:39 +02:00
Zhiwei
371985d129
deprecation warning for not catch lowercase env var ( #2344 )
2021-12-26 21:47:15 +02:00
Adam Hopkins
3eae00898d
Set setuptools version for RTD
2021-12-26 14:25:09 +02:00
Adam Hopkins
dc3ccba527
Auto extend with Sanic Extensions ( #2308 )
2021-12-25 22:20:06 +02:00