L. Kärkkäinen
a5d7d03413
Nicer traceback formatting ( #2667 )
...
Co-authored-by: L. Kärkkäinen <98187+Tronic@users.noreply.github.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
Co-authored-by: SML <smlbiobot@gmail.com>
2023-03-06 21:24:12 +02:00
L. Kärkkäinen
259e458847
Simplified parse_content_header escaping ( #2707 )
2023-03-06 06:39:16 +02:00
Adam Hopkins
cb49c2b26d
Add header accessors ( #2696 )
2023-02-28 00:26:53 +02:00
L. Kärkkäinen
dfc0704831
Error page rendering format selection ( #2668 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
2023-02-26 08:25:10 +02:00
Adam Hopkins
d238995f1b
Refresh Request.accept functionality ( #2687 )
2023-02-21 08:22:51 +02:00
Mohammad Almoghrabi
6f5303e080
check the status of socket before shutting down ( #2680 )
...
* check the status of socket before shutting down
* remove socket status checking & ignore OSError exception
2023-02-14 22:59:41 +02:00
Ryu Juheon
5e7f6998bd
fix(websocket): ASGI websocket must pass thru bytes as is ( #2651 )
2023-02-05 16:41:54 +02:00
L. Kärkkäinen
c7a71cd00c
Use FALLBACK_ERROR_FORMAT for handlers that return empty() ( #2659 )
...
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2023-02-05 15:29:01 +02:00
Adam Hopkins
9cb9e88678
Establish basic file browser and index fallback ( #2662 )
...
Co-authored-by: L. Kärkkäinen <98187+Tronic@users.noreply.github.com>
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
2023-02-05 15:09:04 +02:00
Rodolfo Olivieri
30c53b6857
Remove deprecated property in blueprint ( #2666 )
...
Fixes https://github.com/sanic-org/sanic/issues/2442
2023-01-30 09:26:55 +02:00
Adam Hopkins
4ad8168bb0
Version 22.12 release notes ( #2637 )
2022-12-27 16:50:36 +02:00
Adam Hopkins
28f5b3c301
Add better inspector arg parsing ( #2642 )
2022-12-26 12:27:40 +02:00
Adam Hopkins
c573019e7f
ASGI websocket recv text or bytes ( #2640 )
2022-12-25 13:52:07 +02:00
Adam Hopkins
029f564032
Pass unquote thru add_route ( #2639 )
2022-12-21 10:45:23 +02:00
Adam Hopkins
2abe66b670
Add priority to register_middleware method ( #2636 )
2022-12-19 19:14:46 +02:00
Adam Hopkins
911485d52e
Fix Windows sock share ( #2635 )
2022-12-18 15:04:10 +02:00
Adam Hopkins
4744a89c33
Fix double ctrl-c kill ( #2634 )
2022-12-18 14:40:38 +02:00
Adam Hopkins
f7040ccec8
Implement restart ordering ( #2632 )
2022-12-18 14:09:17 +02:00
Adam Hopkins
518152d97e
Reload interval on class variable ( #2633 )
2022-12-18 13:36:54 +02:00
Adam Hopkins
0e44e9cacb
Move to HTTP Inspector ( #2626 )
2022-12-18 10:29:58 +02:00
Adam Hopkins
bfb54b0969
Test for 3.11 support ( #2612 )
...
Co-authored-by: Zhiwei <zhi.wei.liang@outlook.com>
2022-12-17 23:46:22 +02:00
Adam Hopkins
a3ff0c13b7
ASGI lifespan failure on exception ( #2627 )
2022-12-16 08:56:07 +02:00
Mary
95ee518aec
Replace deprecated distutils.strtobool ( #2628 )
2022-12-16 07:48:41 +02:00
Zhiwei
71d3d87bcc
Deprecate Conditions and Triggers Saved in handler
Callable; Save Condition in signal.extra
Instead ( #2608 )
2022-12-15 12:32:07 +02:00
Adam Hopkins
b276b91c21
Allow fork in limited cases ( #2624 )
2022-12-15 11:49:26 +02:00
Adam Hopkins
064168f3c8
Add a SIGKILL to second ctrl+c ( #2621 )
2022-12-14 23:51:11 +02:00
Adam Hopkins
db39e127bf
Scale workers ( #2617 )
2022-12-13 09:28:23 +02:00
L. Kärkkäinen
13e9ab7ba9
Filename normalisation of form-data/multipart file uploads (umlauts on Apple clients) ( #2625 )
...
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
2022-12-13 08:36:21 +02:00
Adam Hopkins
92e7463721
Add a restart mechanism to all workers in the multiplexer ( #2622 )
2022-12-11 11:33:42 +02:00
Néstor Pérez
8e720365c2
Add JSONResponse class ( #2569 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-12-11 10:37:45 +02:00
Adam Hopkins
d4041161c7
Ensure middleware executes once per request timeout ( #2615 )
2022-12-07 23:07:17 +02:00
Adam Hopkins
f32437bf13
Kill server early on worker error ( #2610 )
2022-12-07 14:42:17 +02:00
LiraNuna
0909e94527
Corrected Colors
enum under Python 3.11 ( #2590 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Fixes https://github.com/sanic-org/sanic/issues/2589
2022-11-29 12:17:48 +02:00
Adam Hopkins
aef2673c38
Force socket shutdown before close ( #2607 )
...
Co-authored-by: Zhiwei <zhi.wei.liang@outlook.com>
2022-11-29 12:04:22 +02:00
Aymeric Augustin
4c14910d5b
Add compatibility with websockets 11.0. ( #2609 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-11-29 11:45:18 +02:00
Adam Hopkins
4422d0c34d
Mergeback from current-release
2022-10-31 13:24:47 +02:00
Adam Hopkins
ad9183d21d
Merge branch 'main' of github.com:sanic-org/sanic into current-release
2022-10-31 13:22:47 +02:00
Adam Hopkins
d70636ba2e
Add GenericCreator for loading SSL certs in processes ( #2578 )
2022-10-31 13:22:30 +02:00
Adam Hopkins
da23f85675
Set version
2022-10-31 13:20:17 +02:00
Adam Hopkins
3f4663b9f8
Resolve edge case in nested BP Groups ( #2592 )
2022-10-31 12:58:41 +02:00
Adam Hopkins
65d7447cf6
Add interval sleep in reloader ( #2595 )
2022-10-31 12:34:01 +02:00
Adam Hopkins
5369291c27
22.9 Docs ( #2556 )
2022-10-31 11:47:23 +02:00
Ryu Juheon
1c4925edf7
fix: sideeffects created by changing fork to spawn ( #2591 )
2022-10-27 20:39:17 +03:00
Santi Cardozo
6b9edfd05c
improve error message if no apps found in registry ( #2585 )
2022-10-25 16:54:44 +03:00
Adam Hopkins
f891995b48
Start v22.12
2022-09-29 13:04:46 +03:00
Adam Hopkins
5052321801
Remove deprecated items ( #2555 )
2022-09-29 01:07:09 +03:00
Adam Hopkins
23ce4eaaa4
Merge branch 'main' of github.com:sanic-org/sanic
2022-09-23 00:16:27 +03:00
Adam Hopkins
23a430c4ad
Set version properly
2022-09-23 00:16:10 +03:00
Adam Hopkins
ec158ffa69
Additional logger and support for multiprocess manager ( #2551 )
2022-09-23 00:01:33 +03:00
Adam Hopkins
6e32270036
Begin middleware revamp ( #2550 )
2022-09-22 00:43:42 +03:00
Zhiwei
43ba381e7b
Refactor _static_request_handler
( #2533 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-09-21 00:45:03 +03:00
Zhiwei
16503319e5
Make WebsocketImplProtocol async iterable ( #2490 )
2022-09-21 00:20:32 +03:00
Adam Hopkins
389363ab71
Better request cancel handling ( #2513 )
2022-09-19 16:04:09 +03:00
Adam Hopkins
7f894c45b3
Add deprecation warning filter ( #2546 )
2022-09-18 18:54:35 +03:00
Adam Hopkins
4726cf1910
Sanic Server WorkerManager refactor ( #2499 )
...
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
2022-09-18 17:17:23 +03:00
Adam Hopkins
d352a4155e
Add signals before and after handler execution ( #2540 )
2022-09-15 15:49:21 +03:00
Adam Hopkins
e5010286b4
Raise warning and deprecation notice on violations ( #2537 )
2022-09-15 15:24:46 +03:00
Adam Hopkins
358498db96
Do not apply double slash to Blueprint and static dirs ( #2515 )
2022-09-15 14:43:20 +03:00
monosans
e4999401ab
Improve and fix some type annotations ( #2536 )
2022-09-13 08:53:48 +03:00
Néstor Pérez
c8df0aa2cb
Fix easter egg through CLI ( #2542 )
2022-09-12 01:44:21 +03:00
Zhiwei
753ee992a6
Validate File When Requested ( #2526 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-08-18 12:05:05 +03:00
Adam Hopkins
0392d1dcfc
Always show server location in ASGI ( #2522 )
...
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-08-11 10:00:35 +03:00
Adam Hopkins
7827b1b41d
Add Request properties for HTTP method info ( #2516 )
2022-08-10 21:12:09 +03:00
Adam Hopkins
8e9342e188
Warn on duplicate route names ( #2525 )
2022-08-10 20:36:47 +03:00
Ryu Juheon
dee09d7fff
style: add some type hints ( #2517 )
2022-08-02 08:47:59 +03:00
Adam Hopkins
9cf38a0a83
MERGEBACK ( #2495 ) ( #2512 )
...
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 ( #2508 )
2022-07-31 12:54:42 +03:00
Adam Hopkins
e100a14fd4
Use pathlib for path resolution ( #2506 )
2022-07-31 08:49:02 +03:00
Néstor Pérez
9d415e4ec6
Prevent directory traversion with static files ( #2495 )
...
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 ( #2502 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2022-07-24 22:47:39 +03:00
Michael Azimov
e4be70bae8
Add custom loads function ( #2445 )
...
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 ( #2487 )
2022-06-28 15:25:46 +03:00
Adam Hopkins
aba333bfb6
Improve API docs ( #2488 )
2022-06-28 10:53:03 +03:00
Adam Hopkins
b59da498cc
HTTP/3 Support ( #2378 )
2022-06-27 11:19:26 +03:00
Zhiwei
70382f21ba
Fix and improve file cache control header calculation ( #2486 )
2022-06-26 23:11:48 +03:00
Néstor Pérez
0e1bf89fad
Add missing spaces in CLI error message ( #2485 )
2022-06-26 10:38:35 +03:00
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
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
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
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
0030425c8c
Conditionally inject CLI arguments into factory ( #2402 )
2022-03-23 12:00:41 +02:00