Commit graph

77 commits

Author SHA1 Message Date
michalpokusa
c95290f390 Replaced route_handlers dict with _HTTPRoutes object in HTTPServer 2023-03-19 15:07:44 +00:00
foamyguy
874d3ed886
Merge pull request #37 from matemaciek/main
Buffer_size improvements
2023-02-06 15:32:32 -06:00
Maciej Sokołowski
9808f15e2e
Auto-serve index.html for root path 2023-01-20 14:51:10 +01:00
Maciej Sokołowski
4e63771c3b
Expose buffer_size in response.send_file, adjust default to match the one in server 2023-01-20 09:57:19 +01:00
michalpokusa
c609a821d5 Changed address to client_address to match CPython's http.server module naming 2023-01-02 17:22:53 +00:00
michalpokusa
c758e519c0 Changed root to root_path in docstrings 2022-12-28 17:44:05 +00:00
michalpokusa
f0b61a721f Prevented from calling .send() multiple times and added deprecation error if handler returns HTTPResponse 2022-12-26 01:52:39 +00:00
michalpokusa
00d3247825 Refactor for unifying the HTTPResponse API 2022-12-23 11:55:57 +00:00
michalpokusa
c1d2f55c46 Merge remote-tracking branch 'origin/main' into test 2022-12-23 11:54:37 +00:00
michalpokusa
d547c7fa39 Fixed and extended docstrings 2022-12-19 20:24:31 +00:00
paul-1
4768bbd20a Add Chunked Encoding to minimize memory usage for
large dynamic html pages.
2022-12-14 20:00:41 -05:00
paul-1
e66cfbfcb5 Add Cache-Control to headers. 2022-12-14 19:58:14 -05:00
michalpokusa
469f0eb9a0 Implemented processing 'Content-Length' header and limiting received bytes 2022-11-22 04:40:52 +00:00
michalpokusa
04805467cb Changed default socket_timeout and made it possible to be a positive number only 2022-11-20 14:17:13 +00:00
michalpokusa
85d1c3cc89 Changed how incoming data is received
Solved problem when data is sent in chunks and is not received in full.
Bypassed ESP32 TCP buffer limit of 2880 bytes.
2022-11-19 02:08:04 +00:00
michalpokusa
eaea81d923 Added HTTPServer.socket_timeout 2022-11-19 02:07:31 +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
41edff8ceb Added CommonHTTPStatus 2022-11-13 22:10:05 +00:00
michalpokusa
e0a117fedf Removed blocking behavior of socket 2022-11-13 12:16:18 +00:00
michalpokusa
e06d0cd29c Small changes across files, comments, typing 2022-11-13 12:15:31 +00:00
michalpokusa
9b49df8733 Unified root to root_path across all files 2022-11-13 09:58:09 +00:00
michalpokusa
bb6ef752e0 Refactor in HTTPStatus 2022-11-12 23:37:48 +00:00
michalpokusa
c0ca616019 Moved previous functionality of _HTTPRequest to HTTPRoute, renamed routes to route_handlers 2022-11-12 21:40:55 +00:00
michalpokusa
450ee79bd7 Refactor of _HTTPRequest
Changed name and added new attributes to HTTPRequest like method, path, query_params, http_version, headers and body
2022-11-12 21:23:20 +00:00
michalpokusa
4101db8aee Added HTTPMethod enum 2022-11-12 20:59:54 +00:00
michalpokusa
6892a93535 Splitted adafruit_httpserver into separate files 2022-11-12 19:47:50 +00:00