Adam Hopkins
b276b91c21
Allow fork in limited cases ( #2624 )
2022-12-15 11:49:26 +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
beae35f921
Ignore recent failures on bad TLS tests ( #2611 )
2022-11-29 10:51:51 +02:00
Adam Hopkins
d70636ba2e
Add GenericCreator for loading SSL certs in processes ( #2578 )
2022-10-31 13:22:30 +02:00
Adam Hopkins
3f4663b9f8
Resolve edge case in nested BP Groups ( #2592 )
2022-10-31 12:58:41 +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
5052321801
Remove deprecated items ( #2555 )
2022-09-29 01:07:09 +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
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
Adam Hopkins
e100a14fd4
Use pathlib for path resolution ( #2506 )
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 ( #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
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 ( #2504 )
2022-07-24 22:07:54 +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
b59da498cc
HTTP/3 Support ( #2378 )
2022-06-27 11:19:26 +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
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
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
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
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
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
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
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