Commit graph

25 commits

Author SHA1 Message Date
michalpokusa
503522c6e4 Added tuple to possible data types of route(methods=...) 2023-08-27 01:56:47 +00:00
michalpokusa
4063b5a39b Updated Copyright headers 2023-07-30 20:09:30 +00:00
michalpokusa
d3890130ee Modified as_route docstring to be more verbose 2023-07-21 08:39:20 +00:00
michalpokusa
978a0c9509 Minor change in as_route docstring 2023-07-21 00:02:13 +00:00
michalpokusa
5c30a2a31b Added as_route decorator as shorthand for creating Route objects 2023-07-16 18:44:58 +00:00
michalpokusa
e34d27dcbb Fix: Wrong returns in docstring 2023-07-13 11:47:27 +00:00
michalpokusa
d372f8e216 CI fixes, reformating etc. 2023-07-13 10:25:38 +00:00
michalpokusa
e6a0b02e9c Minor refactor of passing URL parameters to handler 2023-07-13 06:54:34 +00:00
michalpokusa
8ee162d5ac Changed Route class to public 2023-07-12 20:57:33 +00:00
michalpokusa
f95781a050 Rewrite of Response logic from context managers to returns, added some new types of response 2023-05-08 09:01:12 +00:00
michalpokusa
a424d27098 Added ... and .... wildcards 2023-05-03 13:53:30 +00:00
michalpokusa
33d6b25c5e Refactor of _Route and _Routes, added append_slash 2023-05-03 09:25:06 +00:00
michalpokusa
85254e5b92 Changes to docstrings 2023-04-27 20:40:23 +00:00
michalpokusa
18d4a537b1 Changed positional url parameters to keyword 2023-04-26 23:51:43 +00:00
michalpokusa
ee67bdbbb2 _Route now respects "/" suffix of path 2023-04-26 23:51:43 +00:00
michalpokusa
d4a8a8dc3f Removed HTTP... prefix from class names 2023-04-25 21:27:10 +00:00
Neradoc
f9cf90f2d2 Allow no route to be defined for only serving static files 2023-04-13 17:34:39 +02:00
michalpokusa
d5817b0abd Refactor for removing the need for saving last match group 2023-04-01 18:36:55 +00:00
michalpokusa
994a7e87c0 Minor changes to repr of _HTTPRoute and _HTTPRoutes 2023-03-20 04:12:02 +00:00
michalpokusa
813c53296b Optimization, reduced number of re.match calls per request 2023-03-20 04:05:14 +00:00
michalpokusa
e2a4761eef Made variable name and docstring more verbose 2023-03-20 03:49:23 +00:00
michalpokusa
8e2967b293 Changed how routes are mapped to handler functions, added _HTTPRoutes
Added option to provide regex-like URLs using <> brackets
2023-03-19 15:02:36 +00:00
michalpokusa
6585d3f709 Resolving rest of pylint and black errors 2022-11-14 00:34:05 +00:00
michalpokusa
21e20b6041 Preparing code for docs generation, black formatting, updating examples 2022-11-13 23:26:25 +00:00
michalpokusa
c0ca616019 Moved previous functionality of _HTTPRequest to HTTPRoute, renamed routes to route_handlers 2022-11-12 21:40:55 +00:00