Emi Tatsuo
9ec1a5663d
Merge branch 'devel' into gemtext
2020-12-07 17:29:34 -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
7add331e0b
Made the link rewriting docs *way* better
2020-12-05 11:27:30 -05:00
Emii Tatsuo
89e7719939
Fix stable build
2020-12-01 23:32:03 -05:00
Emii Tatsuo
8f86bac608
Added rewrite_all for body
2020-12-01 21:41:00 -05:00
Emii Tatsuo
f922f8c70d
Merged Meta, Status, and ResponseHeader into Response
2020-12-01 16:36:29 -05:00
Emii Tatsuo
86ed240761
Remove dependancy on `mime` when `serve_dir` is off
2020-11-30 21:26:25 -05:00
Emii Tatsuo
4ba099f947
Outsource document building to the gemtext crate
...
This change is still pending on some of my PRs being merged to main in the gemtext repository. Please see:
=> https://tulpa.dev/cadey/maj/pulls/12 Add conversion traits to Builder
=> https://tulpa.dev/cadey/maj/pulls/13 Add a `blank_line()` method to `Builder`
=> https://tulpa.dev/cadey/maj/pulls/14 Accept an Option<&str> as a link name
=> https://tulpa.dev/cadey/maj/pulls/15 Add support for alt-text in preformatted blocks
Once these changes are merged, the dependency on gemtext should be moved to the crates.io version
2020-11-30 14:27:58 -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
Emi Tatsuo
5254c17e36
Rework Request::success methods
2020-11-20 14:18:11 -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
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
panicbit
0425bf2cf3
add Cowy util trait
2020-11-14 22:46:29 +01:00
panicbit
0c05d6d162
implement document API
2020-11-14 09:55:21 +01:00
panicbit
28162bde5c
move split types module into submodules
2020-11-14 04:43:29 +01:00