michalpokusa
|
802d7fd9db
|
Added Server.add_routes for importing external routes
|
2023-07-13 07:26:03 +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
|
4ad7995386
|
Added warning about exposing files and some docstrings
|
2023-05-22 15:24:27 +00:00 |
|
michalpokusa
|
85b452b95b
|
Fix: Incorrect parsing of default route methods
|
2023-05-22 14:52:01 +00:00 |
|
michalpokusa
|
90ce5368b4
|
Minor refactor of sending response, modified guard
|
2023-05-08 22:41: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
|
e3529d6e37
|
Moved debugging exception to .poll()
|
2023-05-07 21:37:00 +00:00 |
|
michalpokusa
|
c299f9fdc9
|
Corrected typing in Response.send
|
2023-05-06 15:26:44 +00:00 |
|
michalpokusa
|
55be729bfa
|
Fix: Incorrectly changing from list to set using brackets
|
2023-05-05 22:03:18 +00:00 |
|
michalpokusa
|
3359668c08
|
Imported missing exception in module init, updated authors
|
2023-05-04 00:05:12 +00:00 |
|
michalpokusa
|
a424d27098
|
Added ... and .... wildcards
|
2023-05-03 13:53:30 +00:00 |
|
michalpokusa
|
191e91c928
|
Changed format of debug logs, added Response.size, fix in send_chunk
|
2023-05-03 09:25:06 +00:00 |
|
michalpokusa
|
33d6b25c5e
|
Refactor of _Route and _Routes, added append_slash
|
2023-05-03 09:25:06 +00:00 |
|
michalpokusa
|
a5be235a96
|
Added stopping server on Ctrl-C and debug message on stop
|
2023-05-01 00:47:00 +00:00 |
|
michalpokusa
|
dbdbacd7f4
|
Added Server.debug for verbose messages during development
|
2023-04-30 23:26:49 +00:00 |
|
michalpokusa
|
0607776e7a
|
Added host and port attributes to Server
|
2023-04-30 21:05:59 +00:00 |
|
michalpokusa
|
e1d3e3b820
|
Added method for verifying that server can be started on given host:port
|
2023-04-30 21:03:24 +00:00 |
|
michalpokusa
|
e5f506b9ba
|
Added Request.json()
|
2023-04-30 20:13:42 +00:00 |
|
michalpokusa
|
752dcaf343
|
Returning from serve_forever on KeyboardInterrupt
|
2023-04-30 11:18:42 +00:00 |
|
michalpokusa
|
61135f152c
|
Added checking if compatible send method is used
|
2023-04-29 15:14:36 +00:00 |
|
michalpokusa
|
07782b68e7
|
Removed accidentally commited leftover
|
2023-04-29 13:34:37 +00:00 |
|
michalpokusa
|
eba7a91146
|
Added Server.stop
|
2023-04-29 00:02:04 +00:00 |
|
michalpokusa
|
19148a5d1e
|
Extensive updates and expansion of docs and examples
|
2023-04-28 12:23:54 +00:00 |
|
michalpokusa
|
223086d275
|
Added imports directly from adafruit_httpserver
|
2023-04-28 11:09:42 +00:00 |
|
michalpokusa
|
5d533dadb7
|
Default .send_file to server's root_path
|
2023-04-28 11:06:27 +00:00 |
|
michalpokusa
|
15b00cb1ba
|
Added server parameter to Request
|
2023-04-28 11:06:27 +00:00 |
|
michalpokusa
|
85254e5b92
|
Changes to docstrings
|
2023-04-27 20:40:23 +00:00 |
|
michalpokusa
|
e5ddaaf0d7
|
Refactor of .poll and .server_forever, added option to disable filesystem access
|
2023-04-26 23:57:34 +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
|
ffa62d90be
|
Replaced decorator that prevents sending Response multiple times with method
IDE was getting confused by decorated method and was not displaying the type hint properly
|
2023-04-26 23:51:43 +00:00 |
|
michalpokusa
|
142c89ba6a
|
Added option to restrict access to whole Server with Authentication
|
2023-04-26 23:46:43 +00:00 |
|
michalpokusa
|
ee7a8b06fb
|
Major refactor of MIMETypes
|
2023-04-26 23:44:43 +00:00 |
|
michalpokusa
|
33fecc9827
|
Allowed passing multiple methods at the same time to .route
|
2023-04-25 21:27:12 +00:00 |
|
michalpokusa
|
4224ac87c4
|
Replaced CommonHTTPStatus with direct values
|
2023-04-25 21:27:12 +00:00 |
|
michalpokusa
|
d4a8a8dc3f
|
Removed HTTP... prefix from class names
|
2023-04-25 21:27:10 +00:00 |
|
michalpokusa
|
75ac0f2b49
|
Added authentication logic, AuthenticationError, UNAUTHORIZED_401 status
|
2023-04-25 21:26:15 +00:00 |
|
michalpokusa
|
0fff602370
|
Replaced public header_body_bytes by private methods
|
2023-04-24 15:11:48 +00:00 |
|
foamyguy
|
0850abad7b
|
Merge pull request #45 from foxy82/main
Fix infinite loop when requesting too quickly
|
2023-04-24 09:35:39 -05:00 |
|
michalpokusa
|
394c6f3952
|
Merge commit 'a8b68f153b72b8c022eceec254abe129cf5f5802' into prevent-parent-directory-access
|
2023-04-19 17:10:38 +00:00 |
|
anecdata
|
a8b68f153b
|
Merge pull request #48 from Neradoc/respond-to-file-head
Allow HEAD requests to files paths
|
2023-04-19 11:57:46 -05:00 |
|
michalpokusa
|
bef9f76720
|
Removing unnecessary slash in front of filename
|
2023-04-16 12:16:51 +00:00 |
|
michalpokusa
|
8a4f5c4bbe
|
Extracted multiple send calls logic into decorator
|
2023-04-16 12:16:51 +00:00 |
|
michalpokusa
|
a545ca73d2
|
Added missing FORBIDDEN_403
|
2023-04-16 09:32:21 +00:00 |
|
michalpokusa
|
0467a276e2
|
Updated HTTPServer constructors to use "/static" as root path
|
2023-04-16 09:32:21 +00:00 |
|
michalpokusa
|
d89e66e78e
|
Added checking for .. and backslash in path, introduced custom exceptions
|
2023-04-16 09:31:28 +00:00 |
|
michalpokusa
|
e7a2debc67
|
Minor changes in comments
|
2023-04-14 02:53:09 +00:00 |
|
michalpokusa
|
77bc821c38
|
Moved root_path from start and server_forever methods to constructor
|
2023-04-13 23:23:13 +00:00 |
|
Neradoc
|
9ea26651f8
|
allow HEAD requests to files paths
|
2023-04-13 18:32:31 +02:00 |
|