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
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
Ryu juheon
68b654d981
fix(tasks): newly assigned `None
` in registry ( #2381 )
2022-02-08 08:33:09 +02:00
Adam Hopkins
ac388d644b
Downgrade warnings to backwater debug messages ( #2382 )
2022-01-19 14:26:45 +02:00
Adam Hopkins
b8d991420b
Sanic multi-application server ( #2347 )
2022-01-16 09:03:04 +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
Zhiwei
371985d129
deprecation warning for not catch lowercase env var ( #2344 )
2021-12-26 21:47:15 +02:00
Adam Hopkins
dc3ccba527
Auto extend with Sanic Extensions ( #2308 )
2021-12-25 22:20:06 +02:00
Adam Hopkins
b91ffed010
Change signal routing for increased consistency ( #2277 )
2021-12-24 01:27:54 +02:00
Adam Hopkins
8c07e388cd
LTS v21.12 Deprecations ( #2306 )
...
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
2021-12-24 00:30:27 +02:00
Néstor Pérez
98ce4bdeb2
Optional uvloop use ( #2264 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-12-23 11:57:33 +02:00
Adam Hopkins
4659069350
Add route context ( #2302 )
2021-12-21 22:56:12 +02:00
Adam Hopkins
080d41627a
Env custom type casting ( #2330 )
2021-12-21 00:50:45 +02:00
Adam Hopkins
d799c5f03c
Add named tasks ( #2304 )
2021-12-20 23:50:04 +02:00
Adam Hopkins
abe062b371
Remove app instance from Config for error handler setting ( #2320 )
2021-12-18 18:58:14 +02:00
Adam Hopkins
f282865362
Cleanup ports on tests ( #2338 )
2021-12-13 19:48:30 +02:00
Adam Hopkins
264453459e
Add runtime checking to create_server to verify that startup has been run ( #2328 )
2021-12-13 09:36:41 +02:00
Zhiwei
96c027bad5
Prevent sending multiple or mixed responses on a single request ( #2327 )
...
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2021-12-09 12:00:18 +02:00
Adam Hopkins
b2a1bc69f5
Make warnings for DeprecationWarning consistent ( #2332 )
2021-12-08 21:01:28 +02:00
Kian Meng Ang
ab35121864
Fix typos ( #2329 )
...
* Fix typos
* Downgrade mistune version
* Fix blueprint host param
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
Co-authored-by: Adam Hopkins <adam@amhopkins.com>
2021-12-06 09:17:01 +02:00
Adam Hopkins
55c36e0240
Fix examples to work as expected ( #2305 )
...
* Fix examples to work as expected
* Clean up examples
* Update worker test
* Merge in from main and cleanup example
2021-11-23 23:00:25 +02:00
Adam Hopkins
523db190a7
Add contextual exceptions ( #2290 )
2021-11-18 17:47:27 +02:00
Adam Hopkins
95631b9686
Coffee please ( #2316 )
...
* Coffee please
* Add unit tests
2021-11-18 14:53:06 +02:00
Adam Hopkins
0860bfe1f1
Merge release 21.9.2 ( #2313 )
2021-11-17 19:36:36 +02:00
Adam Hopkins
85e7b712b9
Allow early Blueprint registrations to still apply later added objects ( #2260 )
2021-11-17 17:29:41 +02:00
L. Kärkkäinen
b731a6b48c
Make HTTP connections start in IDLE stage, avoiding delays and error messages ( #2268 )
...
* Make all new connections start in IDLE stage, and switch to REQUEST stage only once any bytes are received from client. This makes new connections without any request obey keepalive timeout rather than request timeout like they currently do.
* Revert typo
* Remove request timeout endpoint test which is no longer working (still tested by mocking). Fix mock timeout test setup.
Co-authored-by: L. Karkkainen <tronic@users.noreply.github.com>
2021-11-16 23:03:27 +02:00
Adam Hopkins
cde02b5936
More consistent config setting with post-FALLBACK_ERROR_FORMAT apply ( #2310 )
...
* Update unit testing and add more consistent config
* Change init and app values to private
* Cleanup line lengths
2021-11-16 13:07:33 +02:00