Commit Graph

15 Commits

Author SHA1 Message Date
78b67a02ad Make origin::Store::sync async
In order for this method to make sense as an async, the returned box
must have its lifetime tied to the store. This did not jive well with
the mock implementation of origin::Store, so I ditched that, along with
the mux tests which depended on it. Oh well.
2024-01-21 16:18:31 +01:00
6dd53f96d8 Handle requested path being a directory correctly 2024-01-16 14:31:32 +01:00
dbb8e442c8 Fixes from clippy 2024-01-10 10:42:48 +01:00
Brian Picciano
7f8e40c19f Fixed tests for git and acme::store 2023-08-03 10:02:03 +02:00
Brian Picciano
96b38f2c97 Support for gemini fully fleshed out 2023-08-01 16:44:16 +02:00
Brian Picciano
31782be10d Moved http proxy under the service module 2023-07-19 22:36:29 +02:00
Brian Picciano
9beeffcdcf Revert "Have get_file accept and return structs, which will be easier to extend going forward"
This reverts commit a86020eedf.

Turns out that even with this change proxying won't work properly via
origin::Store, it'll just have to be a special case. I'm keeping the
commit around in case we want this for a later case.
2023-07-16 16:09:37 +02:00
Brian Picciano
a86020eedf Have get_file accept and return structs, which will be easier to extend going forward 2023-07-16 15:40:20 +02:00
Brian Picciano
c336486f5a Define proxy origin 2023-07-16 15:10:02 +02:00
Brian Picciano
57b56934a9 Switch to using a config file 2023-07-09 16:09:00 +02:00
Brian Picciano
9c1bdc1e8a Introduce origin config 2023-07-09 14:07:07 +02:00
Brian Picciano
82290d8b0b Get rid of read_file_into, use streams to serve files from domain manager 2023-07-08 15:53:40 +02:00
Brian Picciano
8b75b141f4 Alias BoxByteStream, and test git get_file implementation 2023-07-08 15:22:44 +02:00
Brian Picciano
60b90746fc Implement origin::Store::get_file, to deprecate read_file_into 2023-07-08 14:43:36 +02:00
Brian Picciano
5e264093ec Get rid of origin::Origin trait completely, move read_file_into onto the origin::Store itself 2023-07-05 19:03:51 +02:00