summaryrefslogtreecommitdiff
path: root/crates/tor-dirserver/src/http.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-dirserver: Expose Arc of StoreCacheClara Engler2025-10-151-6/+6
|
* tor-dirserver: Some clippy fixesClara Engler2025-10-151-2/+1
|
* tor-dirserver: Remove unsafe unreachableClara Engler2025-10-151-3/+3
|
* tor-dirserver: Improve the error situationClara Engler2025-10-151-43/+35
|
* tor-dirserver: Remove unused importsClara Engler2025-10-151-4/+0
|
* tor-dirserver: Store endpoint paths in `&str`Clara Engler2025-10-151-11/+34
|
* tor-dirserver: Get rid of the poor buildersClara Engler2025-10-151-85/+19
|
* tor-dirserver: Move StoreCache into own moduleClara Engler2025-10-151-151/+18
|
* tor-dirserver: Allow complexity in some fn'sClara Engler2025-09-041-0/+2
| | | | | | | This commit allows `#[allow(clippy::cognitive_complexity)]` in `HttpServer::serve` and `HttpServer::handler_tx`. Allowing this might be controversial but both functions, especially the latter one, are well documented.
* tor-dirserver: Add TODOs for unresolved discussionsClara Engler2025-09-041-0/+5
|
* tor-dirserver: Better wording for "thread poisoned"Clara Engler2025-09-041-2/+2
|
* tor-dirserver: Use `internal!` macro for errorClara Engler2025-09-041-7/+3
|
* tor-dirserver Use `tor_error::Bug`Clara Engler2025-09-041-2/+7
| | | | This commit uses `tor_error::Bug` for indicating thread poisoning.
* tor-dirserver: Use `expect` instead of `unwrap`Clara Engler2025-09-041-11/+6
|
* tor-dirserver: TODO about endpoint error handlingClara Engler2025-09-041-0/+3
|
* tor-dirserver: Rename `cb` to `endpoint_fn`Clara Engler2025-09-041-6/+6
| | | | | This commit renames `cb` to `endpoint_fn` everywhere, including internal implementations.
* tor-dirmirror: Add several "TODO DIRMIRROR" linesClara Engler2025-09-041-0/+13
|
* tor-dirserver: Use strum for `ContentEncoding`Clara Engler2025-09-041-33/+42
|
* tor-dirserver: Fix clippy warnings in testsClara Engler2025-09-041-3/+18
|
* tor-dirserver: Use transactions in endpointsClara Engler2025-09-041-264/+243
| | | | | | | | | | | | | | | | | | This commit refactors a large part of the HTTP module, namely it refactors the `Callback` type to a new type called `EndpointFn` which now works in a transaction based approach and no longer gives access to the `StoreCache`. The type itself is also no longer a trait but a concrete type using `fn`. Another very notable change that became necessary during this commit was to make large parts of the codebase synchronous instead of async, namely because it is non-trivial to `Send` a `Transaction` created inside an async context to a synchronous function. Besides, this change has been deemed necessary for other reasons to. The refactoring to more synchronous code has lead to some interesting changes in `StoreCache` too, namely that in no longer uses async mutex, but a synchronous mutex instead.
* tor-dirserver: Add clippy checks and fix themClara Engler2025-09-041-15/+24
|
* tor-dirserver: Add http moduleClara Engler2025-09-041-0/+1145
This commit implements the initial draft for the HTTP module. It is fairly complicated but well documented within the source code, please refer to that instead.