summaryrefslogtreecommitdiff
path: root/tor-dirclient/src/request.rs
Commit message (Collapse)AuthorAgeFilesLines
* Prefer "relay" to "server" when appropriate.Nick Mathewson2021-05-181-1/+1
|
* Only list the supported encodings in the `Accept-Encoding` headerNick Mathewson2021-04-211-10/+27
| | | | Closes #113
* tor-dirclient: more requests.rs testsNick Mathewson2021-04-201-10/+69
|
* Start moving responsibility for building requests into dirmgrNick Mathewson2021-04-091-0/+31
| | | | This will help with my planned "directory state" refactoring.
* Make ConsensusRequest take a flavor.Nick Mathewson2021-04-011-9/+13
|
* Add accessors for members of different directory requestsNick Mathewson2021-04-011-32/+60
| | | | | | | | This will let us use these types both as client and server-side implementations. Making this change required me to change the download code to take requests by reference. (Sorry, David)
* Rename ClientRequest to Requestable.Nick Mathewson2021-04-011-6/+6
|
* Rename ServerDescriptorRequest to RouterDescRequestNick Mathewson2021-03-301-7/+7
| | | | | Rationale: the name of the request should match the name of the type that you parse from it.
* ServerDescriptorRequest: handle "all.z" case differentlyNick Mathewson2021-03-301-7/+25
| | | | | | Having "no descriptors" mean "all of them" is kind of an accident waiting to happen, and had wrong behavior for partial_docs_ok() and max_response_len().
* fix clippy warnings in request.rsNick Mathewson2021-03-301-5/+2
|
* Move RdDigest to routerdesc.rsNick Mathewson2021-03-301-1/+1
|
* dir: Add server descriptor directory requestDavid Goulet2021-03-301-0/+60
| | | | Signed-off-by: David Goulet <[email protected]>
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-3/+3
| | | | This is painful, but we shouldn't have to do it again.
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-291-4/+4
|
* Refactor errors in tor-decompress and tor-dirclient.Nick Mathewson2021-03-241-10/+5
| | | | | This lets us reinstate the code in dirclient that retired circuits depending on the error type.
* A few more tests in request.rsNick Mathewson2021-01-261-5/+9
|
* Add a test for consensus requests in tor-dirclient.hiro2021-01-221-0/+25
|
* Fix a test in tor-dirclientNick Mathewson2021-01-211-2/+2
|
* Merge remote-tracking branch 'origin/mr/10' into mainNick Mathewson2021-01-211-1/+1
|\
| * Adds zstd decompression implementation for dirclientKushal Das2021-01-211-1/+1
| | | | | | | | Adds dependency to zstd crate.
* | Add a test for encoding authcert requestsNick Mathewson2021-01-211-0/+28
| |
* | Add a little testing in tor-dirclientNick Mathewson2021-01-211-0/+26
|/
* Run cargo fmtNick Mathewson2020-12-171-1/+4
|
* Merge branch 'mr_1_squashed' into mainNick Mathewson2020-12-171-2/+2
|\
| * Fixup! issue #34: adding support for xz2owen662020-12-101-2/+2
| |
* | Use anyhow crate to add extra context for various dirclient errors.George Kadianakis2020-12-101-5/+11
| |
* | Mark some XXXX issues as XXXX-A1.Nick Mathewson2020-12-071-1/+0
|/
* Implement a maximum length for directory responsesNick Mathewson2020-11-251-0/+16
|
* tor-dirclient: add support for partial documents.Nick Mathewson2020-11-251-1/+16
| | | | | | Some requests are still useful when we get only a partial response -- like those where we're asking for a bunch of documents at once. For those, we should return any nonempty partial result.
* Require (and write) docs in tor-dirclient.Nick Mathewson2020-11-201-0/+46
|
* Initial pass on directory-manager code.Nick Mathewson2020-11-191-3/+7
| | | | | | | | This code can now bootstrap from the network, cache the results, and reload from cache. There's lots more work to do here, including a big pile of tidying and refactoring and testing and documentation.
* Start a directory client implementationNick Mathewson2020-11-161-0/+174
It can send a GET request on a circuit, get an answer, and decompress it with zlib. It will need documentation and tests eventually, as well as serious refactoring.