Emi Tatsuo
00584c2f27
Switch to using UIDs
2020-12-16 19:20:54 -05:00
Emi Tatsuo
679af3e313
Add the Request::fingerprint associated function
2020-12-16 09:24:34 -05:00
Emi Tatsuo
e49b71b6d2
Pass the user manager by reference
...
Serving a request now takes 0 arc clones!
2020-12-15 10:36:38 -05:00
Emi Tatsuo
cd0c4c328d
Fix bug in is_success
2020-12-14 20:33:22 -05:00
Emi Tatsuo
27f3f2aee0
Move URI reference to the crate base
2020-12-07 15:58:49 -05:00
Emi Tatsuo
f98b94235a
Cranking out some docs
...
Not finished yet we've got so many docs to write. It's doc writing time!
2020-12-05 14:09:16 -05:00
Emi Tatsuo
b1d1fb7c0d
Warn the first time a request is missing SCRIPT_PATH
2020-12-05 13:01:45 -05:00
Emi Tatsuo
7add331e0b
Made the link rewriting docs *way* better
2020-12-05 11:27:30 -05:00
Emi Tatsuo
ae247312f7
Fix gemini_srv
with more conditional comp
2020-12-05 09:54:05 -05:00
Emi Tatsuo
cb9b3ea167
Fix crash on no certificate provided
2020-12-03 10:47:33 -05:00
Emi Tatsuo
fb357b59eb
Support base64 encoded certificate hashes, remove ring as mandatory dep for scgi_srv
...
Removing ring also means switching out some of the code around user password hashes so that's what that is, if you're wondering. Also, the sunrise today was absolutely beautiful. I haven't been awake for a sunrise in a long time, so I guess that's one upside to not sleeping. Like, melencholy sunsets get a lot of love, but man, nothing fills you with hope and positivity like a sunrise.
2020-12-03 08:10:50 -05:00
Emii Tatsuo
89e7719939
Fix stable build
2020-12-01 23:32:03 -05:00
Emii Tatsuo
05e4d25a53
Added in autorewrite as an option to Server
2020-12-01 21:59:00 -05:00
Emii Tatsuo
8f86bac608
Added rewrite_all for body
2020-12-01 21:41:00 -05:00
Emii Tatsuo
64f54e8e58
Fix rewrite_path
2020-12-01 21:26:08 -05:00
Emii Tatsuo
723986c011
Add rewrite_path()
2020-12-01 19:02:49 -05:00
Emii Tatsuo
6400197514
Treat zero-length input as no input at all
...
Fixes running with molly brown
2020-12-01 17:38:52 -05:00
Emii Tatsuo
f922f8c70d
Merged Meta, Status, and ResponseHeader into Response
2020-12-01 16:36:29 -05:00
Emii Tatsuo
8b9fbce489
Fix user management module, rework certificates to use hashes
2020-12-01 14:43:15 -05:00
Emii Tatsuo
244fd25112
Completely reworked request handling to be able to serve SCGI
...
Multi ~~track~~ protocol ~~drifting~~ abstraction!!
2020-12-01 02:31:08 -05:00
Emii Tatsuo
86ed240761
Remove dependancy on mime
when serve_dir
is off
2020-11-30 21:26:25 -05:00
Emii Tatsuo
e7cbbd7d91
Merge branch 'accept-string-docs' into kochab
2020-11-28 14:51:02 -05:00
Emii Tatsuo
9c999609ef
Accept strings in Document methods
...
A lot of the time users are using the document, it's in order to dynamically generate a page. However, when dynamically generating a page, most of the time you're working with String's, not just &str's. Currently, many Document methods only take an &str, which means that each time you call a method with something like the output from `format!()`, you need to add a `.as_str()`, which adds just a little bit of clutter.
This change makes it so that Document methods that previously took an `&str` can now take an `impl AsRef<str>`, which allows users to pass either an `&str` or a `String`.
2020-11-28 14:47:39 -05:00
Emii Tatsuo
67fe997eee
Merge branch 'fix-stable-build' into kochab
2020-11-27 22:23:55 -05:00
Emii Tatsuo
71a79ad6ff
Fix stable build
2020-11-27 22:20:55 -05:00
Emii Tatsuo
47c6fae79f
Expose user manager in request
2020-11-26 21:04:02 -05:00
Emii Tatsuo
1766ab4c9c
Merge Builder
and Server
in the public API into one concept
2020-11-25 15:52:44 -05:00
Emii Tatsuo
b69aba139f
Rebrand as kochab
...
I spent /so/ long looking for that figlet font.
__ __ __
/ /______ _____/ /_ ____ _/ /_
/ //_/ __ \/ ___/ __ \/ __ `/ __ \
/ ,< / /_/ / /__/ / / / /_/ / /_/ /
/_/|_|\____/\___/_/ /_/\__,_/_.___/
2020-11-25 00:42:09 -05:00
Emi Tatsuo
16721a7321
Merge several pending changes into a virtual master
...
Octopus merges are just a cheap trick to make weak branches stronger
2020-11-24 23:04:26 -05:00
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
2020-11-23 23:34:11 -05:00
panicbit
eebf7119fb
Merge branch 'master' into routes
2020-11-22 21:00:33 +01:00
Emi Tatsuo
a9b347a8c9
Merge branch 'rework-success' into user-management
2020-11-21 17:34:08 -05:00
Emi Tatsuo
115d0aa120
Merge branch 'doc-into-req' into user-management
2020-11-21 17:19:49 -05:00
Emi Tatsuo
cd7af1025a
Cleanup typos in routes docs
...
I should really use spellcheck more often
2020-11-20 23:51:22 -05:00
Emi Tatsuo
e678e45b78
Merge branch 'routes' into user-management
2020-11-20 21:53:00 -05:00
Emi Tatsuo
5254c17e36
Rework Request::success methods
2020-11-20 14:18:11 -05:00
Emi Tatsuo
59e3222ce8
Add trailing segments to request
2020-11-20 13:22:34 -05:00
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
2020-11-20 09:51:37 -05:00
Emi Tatsuo
435330b415
Made Request::document a bit more generic
...
Also how did I not know about the Borrow trait until now???
2020-11-20 09:40:57 -05:00
Emi Tatsuo
0bcce9fd6f
Appease clippy
...
Please my compiler is so angry ;-;
2020-11-19 18:03:10 -05:00
Emi Tatsuo
4996ae99d2
Merge remote-tracking branch 'upstream/master' into user-management
2020-11-19 14:41:18 -05:00
Emi Tatsuo
3da18ca530
Reduced tokio featureset
2020-11-19 10:21:32 -05:00
Emi Tatsuo
753ecf708d
Isolate directory serving methods behind feature, incl mime_guess. Remove itertools
2020-11-19 02:49:41 -05:00
panicbit
f2b27665c2
correctly ignore doctest
2020-11-18 23:01:10 +01:00
panicbit
931c3fbbc2
add temporary redirects and bad requests
2020-11-18 21:26:27 +01:00
Emi Tatsuo
6a78b2f31a
Added Response::success_with_body
2020-11-17 21:41:18 -05:00
Emi Tatsuo
0e2f8d5f62
Added user management API [WIP]
2020-11-16 01:13:16 -05:00
panicbit
add2f30ca6
remove unused function
2020-11-15 21:42:13 +01:00
panicbit
bbeb697bb1
complete document documentation
2020-11-15 21:40:16 +01:00
panicbit
ec6a0af782
keep document internals private
2020-11-15 21:17:22 +01:00