Emi Tatsuo
3e07e24e41
Added automatic clearing of ratelimit keys
2 years ago
Emi Tatsuo
5ae6f578e3
Merge branch 'routes' into rate-limiting
2 years ago
Emi Tatsuo
560760c489
Added another test for RoutingNode
2 years ago
Emi Tatsuo
b2a671993e
Add ability to iterate over a routing node
2 years ago
Emi Tatsuo
df2350a8bb
Switch to a much lighter in-house rate-limiting solution, and use consistant naming of ratelimiting
2 years ago
Emi Tatsuo
c3d7381860
Added a static handler type. Impl AsRef<Body> for Response
...
im so tired i havent slept enough in so long but also i havent done any productive work like do you think im using this project as an excuse or like a bad coping mechanism for my mental health or something like that cause thats what its starting to feel like
2 years ago
Emi Tatsuo
7990739884
Move the handler type to it's own mod, change to an enum
...
The new enum can be converted to from anything that could previously be passed to
add_route, so this is not a breaking change. If fact, from the end user's perspective,
nothing changed, but internally, this gives us a lot of potential as far as having
multiple types of routes.
2 years ago
Emi Tatsuo
2400ef8796
Move user management routes to their seperate feature
2 years ago
Emi Tatsuo
f572209dfa
Merge branch 'reduce-arcs' into routes
2 years ago
Emi Tatsuo
57f083b1d0
Updated changelog to reflect changes to success
...
Dang it I always forget to do that
2 years ago
Emi Tatsuo
4743419f1e
Update changelog with improved error handling for serve_dir
2 years ago
Emi Tatsuo
48c0783e36
Improve error handling for serve_dir
...
Specifically:
- Serve NOT_FOUND when file or directory doesn't exist
- Serve NOT_FOUND and warn in log when permission denied for file or directory
- Serve SERVER_ERROR and warn in log when permission denied or not found for path to serve from
- Serve SERVER_ERROR and warn in log with a link to the GH if an unexpected error happens
2 years ago
Emi Tatsuo
71c1ac0fab
Fix `serve_dir` feature
2 years ago
Emi Tatsuo
28a4d64c5f
Segregate features surrounding multiple certificates & passwords to a seperate feature
2 years ago
Emi Tatsuo
9916770bd2
Added add_authenticated_input_route
2 years ago
Emi Tatsuo
edbfd3ed78
Merge branch 'reduce-arcs' into user-management
2 years ago
panicbit
eebf7119fb
Merge branch 'master' into routes
2 years ago
panicbit
3a999a16fe
Merge pull request #30 from Alch-Emi/doc-into-req
...
Allow direct conversion for Document -> Response
2 years ago
Emi Tatsuo
95a4a8d75d
Reduce number of required `Arc`s
...
Should improve performance because cloning an `Arc` is expensive
2 years ago
panicbit
6930a06ece
Merge pull request #32 from Alch-Emi/fix-kristall
...
Include a workaround for a bug with rustls & webpki
2 years ago
Emi Tatsuo
7854a2a4c4
Add the add_authenticated_route method
...
I'm really proud of how small the user_management example has gotten
2 years ago
Emi Tatsuo
502e68f1aa
Updated the user management example to be more accessible
2 years ago
Emi Tatsuo
916ac1009c
Add docs for add_um_routes
2 years ago
Emi Tatsuo
0756dd7394
Update a few pages
2 years ago
Emi Tatsuo
b03fe0e5f7
Add password management facilities
2 years ago
Emi Tatsuo
2b5ee33762
Fixed bug where user password was never saved
2 years ago
Emi Tatsuo
3c7d3457ef
Added has_password to RegisteredUser
2 years ago
Emi Tatsuo
abe3c00fbf
Merge branch 'fix-kristall' into user-management
2 years ago
Sashanoraa
4d0b0521d6
Include a workaround for a bug with rustls & webpki
2 years ago
Emi Tatsuo
6e82ae059d
Add user management routes
2 years ago
Emi Tatsuo
a9b347a8c9
Merge branch 'rework-success' into user-management
2 years ago
Emi Tatsuo
d5f213b270
Add ratelimiting example
...
Was really supposed to add this earlier but I forgot about it. Oops
2 years ago
Emi Tatsuo
115d0aa120
Merge branch 'doc-into-req' into user-management
2 years ago
Emi Tatsuo
0b4fca2c69
Merge branch 'allow-async-handlers' into user-management
2 years ago
Emi Tatsuo
cd7af1025a
Cleanup typos in routes docs
...
I should really use spellcheck more often
2 years ago
Emi Tatsuo
e678e45b78
Merge branch 'routes' into user-management
2 years ago
Emi Tatsuo
349f6da698
Add rate limiting feature
...
ugghhhhhh I hate how big the governer crate is but there's no alternative besides DIY
2 years ago
Emi Tatsuo
5254c17e36
Rework Request::success methods
2 years ago
Emi Tatsuo
2604b02e2b
Merge branch 'routes' into allow-async-handlers
2 years ago
Emi Tatsuo
536e404fdf
Make RoutingNode generic
2 years ago
Emi Tatsuo
59e3222ce8
Add trailing segments to request
2 years ago
Emi Tatsuo
20181cce96
Updated changelog
2 years ago
Emi Tatsuo
3296d00ec3
Add From<Borrow<Document>> to Response
...
This allows users to call &mut Document.into() in order to create a response, so that you
can do it right in the middle of one of those builder call chain thingies
2 years ago
Emi Tatsuo
435330b415
Made Request::document a bit more generic
...
Also how did I not know about the Borrow trait until now???
2 years ago
Emi Tatsuo
f0798b66a3
Update changelog for improved handlers
2 years ago
Emi Tatsuo
5612ce1085
Removed unnecessary dependency on futures-rs
2 years ago
Emi Tatsuo
29c831649d
Changed the add_route API to allow the use of simpler, async handlers
2 years ago
Emi Tatsuo
54816e1f67
Fixed bug where root handler was never hit for requests other than exact matches
2 years ago
Emi Tatsuo
b085fa5836
Added routing example
2 years ago
Emi Tatsuo
c162bdd156
Updated changelog to add routing API
...
Look I remembered this time!
2 years ago