Miguel Grinberg
c46e429106
Accept responses with just a status code ( Fixes #263 )
2024-11-10 20:09:05 +00:00
Miguel Grinberg
4eac013087
Accept responses with just a status code ( Fixes #263 )
2024-11-10 00:35:21 +00:00
Lukas Kremla
482ab6d5ca
Fixed gzip automatic content-type assignment and added automatic compression header configuration ( #251 )
...
* Fixed gzip automatic content-type assignment and added automatic compression setting
This implements the fix for detecting the proper content-type even when the file has the ".gz" extension. It further makes sure the compression headers are set properly if a "gz." file is detected, but the compression headers weren't explicitly set by the user.
* Added a test for properly auto-determining mime types and setting content encoding header
* Modified the gzip file header assignments and following tests according to the feedback.
---------
Co-authored-by: Lukáš Kremla <lukas.kremla@bonnel.cz >
2024-08-14 23:02:23 +01:00
Miguel Grinberg
6ffb8a8fe9
Cookie path support in session and test client
2024-06-18 20:56:18 +01:00
Miguel Grinberg
0151611fc8
Configurable session cookie options ( Fixes #242 )
2024-06-18 00:09:44 +01:00
Miguel Grinberg
4cb155ee41
Improved cookie support in the test client
2024-03-24 19:45:22 +00:00
Hamsanger
904d5fcaa2
Add event ID to the SSE implementation ( #213 )
2024-03-10 23:52:43 +00:00
Miguel Grinberg
d0a4cf8fa7
Handle 0 as an integer argument ( Fixes #212 )
2024-03-06 20:34:00 +00:00
Miguel Grinberg
f6cba2c0f7
More URLPattern unit tests
2024-02-20 23:09:24 +00:00
Miguel Grinberg
38262c56d3
Do not use regexes for parsing simple URLs ( Fixes #207 )
2024-02-18 15:05:41 +00:00
Miguel Grinberg
6712c47400
Pass keyword arguments to thread executor in the correct way ( Fixes #195 )
2024-01-07 10:44:16 +00:00
Miguel Grinberg
5d188e8c0d
Add a limit to WebSocket message size ( Fixes #193 )
2024-01-03 00:04:02 +00:00
Miguel Grinberg
1fc11193da
Support binary data in the SSE extension
2023-12-28 12:04:17 +00:00
Miguel Grinberg
79452a4699
Upgrade micropython tests to use v1.22, initial circuitpython work
2023-12-27 20:39:20 +00:00
Miguel Grinberg
bd18ceb442
Addressed some inadvertent mistakes in the template extensions
2023-12-23 12:48:27 +00:00
Miguel Grinberg
20ea305fe7
v2 ( #186 )
2023-12-22 20:26:07 +00:00
Miguel Grinberg
3554bc91cb
Handle query string arguments without value ( Fixes #149 )
2023-06-21 20:20:53 +01:00
Miguel Grinberg
e92310fa55
In ASGI, return headers as strings and not binary ( Fixes #144 )
2023-06-07 23:50:44 +01:00
Miguel Grinberg
a0dd7c8ab6
Support negative numbers for int path components ( Fixes #137 )
2023-05-21 23:22:03 +01:00
Miguel Grinberg
a1b061656f
Tolerate slightly invalid formats in query strings ( Fixes #126 )
2023-04-08 17:15:54 +01:00
Miguel Grinberg
67798f7dbf
Cross-Origin Resource Sharing (CORS) support ( Fixes #45 )
2023-03-23 00:03:21 +00:00
Miguel Grinberg
ea6766cea9
Add update() method to NoCaseDict class
2023-03-22 20:22:29 +00:00
Miguel Grinberg
6a31f89673
Respond to HEAD and OPTIONS requests
2023-03-22 12:25:21 +00:00
Miguel Grinberg
daf1001ec5
Support compressed files in send_file() ( Fixes #93 )
2023-03-21 00:24:57 +00:00
Miguel Grinberg
e684ee32d9
Add max_age argument to send_file()
2023-03-20 12:11:01 +00:00
Miguel Grinberg
ddb3b8f442
Return headers as lowercase byte sequences as required by ASGI
2023-03-03 07:15:09 +00:00
Miguel Grinberg
ecd84ecb7b
Update unittest library for MicroPython
2023-02-07 00:03:53 +00:00
Miguel Grinberg
fcaeee6905
Add @after_error_handler decorator ( Fixes #97 )
2023-02-06 23:53:11 +00:00
Miguel Grinberg
5a589afd5e
Addressed error when deleting a user session in async app ( Fixes #86 )
2022-12-06 12:01:16 +00:00
Diego Pomares
24d74fb848
Error handling invokes parent exceptions ( Fixes #74 )
2022-11-08 00:27:11 +00:00
Miguel Grinberg
b133dcc343
URL encode/decode unit tests
2022-09-24 20:15:22 +01:00
Miguel Grinberg
01947b101e
Cache user session
2022-09-24 19:40:28 +01:00
Miguel Grinberg
a8515c97b0
Small performance improvement for NoCaseDict
2022-09-24 15:37:52 +01:00
Miguel Grinberg
b0fd6c4323
Use a case insensitive dict for headers
2022-09-21 23:29:01 +01:00
Miguel Grinberg
59453a52a1
unit test fixes #nolog
2022-09-17 20:46:11 +01:00
Miguel Grinberg
75725795b4
Charset handling in Content-Type headers ( Fixes #60 )
2022-09-17 19:34:34 +01:00
Miguel Grinberg
b61f51f243
SSL/TLS Support
2022-09-05 10:27:59 +01:00
Miguel Grinberg
2399c29c8a
Websocket standard and asyncio extensions ( #55 )
2022-09-03 20:04:34 +01:00
Miguel Grinberg
3c125c43d2
Add abort function
2022-08-09 23:53:44 +01:00
Miguel Grinberg
3bcdf4d496
Async test client
2022-08-06 20:31:33 +01:00
Miguel Grinberg
355ffefcb2
User sessions
2022-08-06 15:30:02 +01:00
Miguel Grinberg
199d23f2c7
Test client
2022-08-06 15:30:02 +01:00
Miguel Grinberg
3a54984b67
Cookie expiration can also be given as a string
2022-08-04 11:27:19 +01:00
Miguel Grinberg
e8d16cf3f9
Support responses with more than one cookie in WSGI and ASGI extensions
2022-08-04 11:20:05 +01:00
Miguel Grinberg
16f3775fa2
Allow routes to only return a body and headers
2022-07-31 16:49:21 +01:00
Miguel Grinberg
8177b9c7f1
Improved handling of 400 and 405 errors
2022-07-31 12:21:31 +01:00
Miguel Grinberg
cd5b35d86f
Mount sub-applications
2022-07-30 15:44:19 +01:00
Miguel Grinberg
bf3aff6c35
Accept POST request with empty body
2022-07-30 14:57:36 +01:00
Miguel Grinberg
120abe45ec
Request-specific after_request handlers
2022-07-30 14:52:56 +01:00
Miguel Grinberg
7686b2ae38
Extension that renders templates with Jinja
2022-07-29 20:19:51 +01:00