| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | dirclient: improve macro documentation | Nick Mathewson | 2026-05-12 | 1 | -6/+16 |
| | | |||||
| * | dirclient: Split EncodedRequest and RequestBody. | Nick Mathewson | 2026-05-12 | 1 | -8/+8 |
| | | | | | | RequestBody is now just an `Option<Arc<str>>` internally, and EncodedRequest is much simpler. | ||||
| * | dirclient: Add a request to upload routerdescs | Nick Mathewson | 2026-05-12 | 1 | -34/+67 |
| | | | | | | (Also refactor the code for POST requests into a new macro, since it would otherwise get quite duplicated.) | ||||
| * | dirclient: Implement Requestable for Arc<dyn Requestable>. | Nick Mathewson | 2026-05-12 | 1 | -1/+17 |
| | | |||||
| * | dirclient, hsservice: Use Arc<str> for hsdesc publishing. | Nick Mathewson | 2026-05-12 | 1 | -2/+4 |
| | | | | | | This saves a little memory, but the technique will help save more memory for other uploads. | ||||
| * | tor-dirclient: Avoid copying bytes that we want to POST. | Nick Mathewson | 2026-05-12 | 1 | -12/+12 |
| | | | | | | This required a change to the hsservice tests, which previously assumed that we'd perform one write per request. | ||||
| * | tor-dirclient: Introduce a new RequestBody type. | Nick Mathewson | 2026-05-12 | 1 | -24/+20 |
| | | | | | | I'm going to use this to avoid copying when uploading large documents. | ||||
| * | tor-dirclient: port to web-time-compat. | Nick Mathewson | 2026-03-26 | 1 | -1/+2 |
| | | |||||
| * | tor-dirclient: Add TODO wrt Default for requests | Clara Engler | 2026-03-18 | 1 | -0/+2 |
| | | |||||
| * | tor-dirclient: Add TODO for renaming | Clara Engler | 2026-03-12 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: No ref semantic in ExtraInfo | Clara Engler | 2026-03-12 | 1 | -6/+6 |
| | | |||||
| * | tor-dirclient: Small semantic fixups | Clara Engler | 2026-03-12 | 1 | -5/+15 |
| | | |||||
| * | tor-dirclient: Support for extra-info requests | Clara Engler | 2026-03-11 | 1 | -1/+118 |
| | | | | | | | | | | | | This commit implements support for extra-info requests in tor-dirclient. It is gated behind the already existing `routerdesc` feature flag, because entities building upon router descriptors most likely also need extra-info, namely directory mirrors and directory authorities. The implementation is largely based upon the existing one for router descriptors, as they are of a very similar request format, most likely due to simply being closely related anyways. | ||||
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 1 | -1/+1 |
| | | | | | Run maint/add_warning | ||||
| * | tor-netdoc: Rename ConsensusFlavor::Ns to ConsensusFlavor::Plain | Ian Jackson | 2025-08-18 | 1 | -1/+1 |
| | | | | | This is part of abolishing the use of "ns" to mean "plain". | ||||
| * | Switch Cargo.toml files to edition 2024. | Nick Mathewson | 2025-08-07 | 1 | -12/+41 |
| | | | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again. | ||||
| * | dirclient: Use the new Tunnel interface | David Goulet | 2025-08-05 | 1 | -6/+8 |
| | | | | | | | This entirely removes the requirement on ClientCirc. Signed-off-by: David Goulet <[email protected]> | ||||
| * | Remove comment saying we do not implement consensus diffs | Nick Mathewson | 2025-06-10 | 1 | -2/+0 |
| | | |||||
| * | dirclient: Stop sending suffix .z in URLs. | Nick Mathewson | 2025-05-27 | 1 | -14/+11 |
| | | | | | | | | | This suffix is redundant with "Accept-Encoding", which all Tor directory caches have supported since 0.3.1.1-alpha. See torspec#342. | ||||
| * | tor-dirclient: modify `check_circuit` to use `first_hop_clock_skew` | Steven Engler | 2025-02-10 | 1 | -14/+29 |
| | | |||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | Fix typos | Dimitris Apostolou | 2024-01-08 | 1 | -1/+1 |
| | | |||||
| * | Only send Content-Length when needed. | Nick Mathewson | 2023-11-27 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | According to RFC 9110: A user agent SHOULD send Content-Length in a request when the method defines a meaning for enclosed content and it is not sending Transfer-Encoding. For example, a user agent normally sends Content-Length in a POST request even when the value is 0 (indicating empty content). A user agent SHOULD NOT send a Content-Length header field when the request message does not contain content and the method semantics do not anticipate such data. Part of #1024 | ||||
| * | tor-dirclient: Always set the Content-Length header. | Gabriela Moldovan | 2023-10-24 | 1 | -7/+7 |
| | | |||||
| * | dirclient: Seal the Requestable trait and hide most of its members. | Nick Mathewson | 2023-10-17 | 1 | -39/+67 |
| | | | | | | | | | Since none of these methods were invoked from outside `tor-dirclient` (except for debugging), and since we have had a fair amount of churn on what we actually want them to be, it seems like a good idea to use this trick to hide them. This will let us make other changes to the actual behavior of Requestable in the future. | ||||
| * | dirclient: Rename partial_docs_ok to partial_response_body_ok | Nick Mathewson | 2023-10-17 | 1 | -23/+22 |
| | | |||||
| * | dirclient: Make Requestable::anonymized mandatory. | Nick Mathewson | 2023-10-17 | 1 | -3/+21 |
| | | |||||
| * | dirclient: Explain why 1024 is a sufficient maximum response length. | Nick Mathewson | 2023-10-16 | 1 | -0/+4 |
| | | |||||
| * | dirclient: Wrap a somewhat wide comment. | Nick Mathewson | 2023-10-16 | 1 | -5/+3 |
| | | |||||
| * | Downgrade another TODO HSS and move it to TODO BREAKING | Nick Mathewson | 2023-10-16 | 1 | -2/+3 |
| | | |||||
| * | Privacy: Do not list supported encodings in hsdesc reqs. | Nick Mathewson | 2023-10-16 | 1 | -19/+46 |
| | | | | | | | | | | | | | | Since not everybody has xz and/or zstd, we don't want to admit whether we support them when we are uploading or downloading an onion service descriptor. Similarly, if we aren't advertising support for an encoding, we shouldn't accept it. Finally, while we're doing this, it made sense to have the ability to mark requests based on how anonymized they are, and reject (some) attempts to send those requests over a one-hop circuit. Closes #1062 | ||||
| * | dirclient: Change a todo to an API todo and make it less blocking. | Nick Mathewson | 2023-10-16 | 1 | -1/+9 |
| | | |||||
| * | tor-dirclient: Set a non-zero expected response len for uploads. | Gabriela Moldovan | 2023-10-03 | 1 | -5/+5 |
| | | |||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Remove unused `StringBody` trait. | Gabriela Moldovan | 2023-08-16 | 1 | -26/+0 |
| | | |||||
| * | tor-dirclient: Make Requestable return requests with String bodies. | Gabriela Moldovan | 2023-08-16 | 1 | -31/+14 |
| | | | | | | It's simpler to always use a `String` to represent directory request bodies. We no longer need the `StringBody` trait. | ||||
| * | tor-dirclient: Rename StringBody::str() to StringBody::as_str(). | Gabriela Moldovan | 2023-08-16 | 1 | -4/+4 |
| | | |||||
| * | tor-dirclient: Add `HsDescUploadRequest`. | Gabriela Moldovan | 2023-08-16 | 1 | -0/+46 |
| | | | | | | The hsdir publisher will send the `HsDescUploadRequest`s to the appropriate directory using `send_request()`. | ||||
| * | tor-dirclient: Make the body type of a `Requestable` type configurable. | Gabriela Moldovan | 2023-08-16 | 1 | -1/+42 |
| | | | | | | | | | | Previously, the `Requestable` trait assumed the body of the request would always be empty (`http::Request<()>`). This change replaces the hardcoded `()` body type with the `Requestable::Body` associated type (which will allow implementors to create requests with non-empty bodies). This will enable us to reuse the `Requestable` trait for building `POST` requests for uploading descriptors. | ||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | dirclient: use correct default max_len | Nick Mathewson | 2023-06-27 | 1 | -2/+2 |
| | | | | | | | Yes, it's 50 kilobytes, not 50 kibibytes. I double-checked this with the C implementation and with param-spec.txt's documentation for `HSV3MaxDescriptorSize`. | ||||
| * | dirclient: Correct an erroneous comment. | Nick Mathewson | 2023-06-27 | 1 | -1/+2 |
| | | |||||
| * | dirclient: Make maximum hsdesc length adjustable. | Nick Mathewson | 2023-06-27 | 1 | -8/+12 |
| | | |||||
| * | dirclient: Explain why hardcoding "3" is ok. | Nick Mathewson | 2023-06-27 | 1 | -1/+7 |
| | | |||||
| * | Use an Enum for the description request | tranna | 2023-04-10 | 1 | -37/+54 |
| | | |||||
| * | dirclient: fix an "unused import" warning. | Nick Mathewson | 2023-04-06 | 1 | -1/+1 |
| | | |||||
| * | tor-dirclient: Add a comment about 50 x 1024 | gabi-250 | 2023-04-03 | 1 | -0/+1 |
| | | |||||
| * | tor-dirclient: Add test case for HsDescDownloadRequest | Ian Jackson | 2023-04-03 | 1 | -1/+21 |
| | | | | | | | | | I couldn't find a test vector in C Tor. This test case was generated from the code here. I'm fairly sure it's right since I managed to get my descriptor downloader to work. (That's not an MR yet, but uses this code.) | ||||
| * | tor-dirclient: Provide HsDescDownloadRequest | Ian Jackson | 2023-04-03 | 1 | -0/+43 |
| | | | | | | In my tests this seems to do the right thing, but I'm getting 404s. I'm not sure if actually this URL is wrong. | ||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
