<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirclient/src/response.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-06-09T15:36:01Z</updated>
<entry>
<title>maint: Run maint/add_warning to deny string slices</title>
<updated>2026-06-09T15:36:01Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T15:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9f5752a77fb57052c06ead0eeae606831f1e8e97'/>
<id>urn:sha1:9f5752a77fb57052c06ead0eeae606831f1e8e97</id>
<content type='text'>
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.

I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.

This commit makes cargo clippy fail.  We will add exceptions in the next
commit.
</content>
</entry>
<entry>
<title>dirclient: Add accessor for status message.</title>
<updated>2026-05-12T12:10:03Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-04-26T16:29:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3f2aa05a5dd12e5d3e8c5b33c128dac80a004b6d'/>
<id>urn:sha1:3f2aa05a5dd12e5d3e8c5b33c128dac80a004b6d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename DirResponse::from_body to from_get_body</title>
<updated>2026-03-04T15:41:19Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-02-09T10:22:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=04e8874058966f45a08558dc78b941ab7edc9b6b'/>
<id>urn:sha1:04e8874058966f45a08558dc78b941ab7edc9b6b</id>
<content type='text'>
This reflects that it is expected for an HTTP GET body.  It is okay
because it is only used in tor-dirmgr, which only performs GET request
anyways.
</content>
</entry>
<entry>
<title>tor-dirclient: Only fail on empty GET responses</title>
<updated>2026-03-04T15:41:19Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-02-09T10:20:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7a10a7703b4417d6f219fc6b7b0452b416476112'/>
<id>urn:sha1:7a10a7703b4417d6f219fc6b7b0452b416476112</id>
<content type='text'>
This commit fixes the previous check to only fail on empty GET
responses.  For this, it introduces a `method` field into
`DirResponse`, which is required to determine the method there.

Doing this is reasonable for an HTTP client, as responses have different
meanings depending on the request method used.
</content>
</entry>
<entry>
<title>tor-dirclient: Disallow empty successful responses</title>
<updated>2026-03-04T15:41:19Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-02-05T16:07:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1eb0eb8620648c187de957dd66027ba762a08a88'/>
<id>urn:sha1:1eb0eb8620648c187de957dd66027ba762a08a88</id>
<content type='text'>
This commit disallows empty responses with a status code 200.

From a pure HTTP level, this is totally valid, but it does not make any
sense in the context of the Tor directory protocol, where an empty
response only makes sense with a 404.

The motivation for this is that a work-in-progress
tor_dirclient::send_request wrapper for tor-dirserver passes the
response into the parse2 multiple function which returns a Vec&lt;T&gt;.
Interfacing code would then always have to check for an empty length and
do respective error handling, which should already fail at an earlier
level (tor-dirclient) instead.
</content>
</entry>
<entry>
<title>Fix name of clippy lint to unchecked_time_subtraction (2)</title>
<updated>2025-11-06T11:28:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-06T11:23:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff'/>
<id>urn:sha1:a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff</id>
<content type='text'>
Run maint/add_warning
</content>
</entry>
<entry>
<title>dirclient: Use the new Tunnel interface (fmt).</title>
<updated>2025-08-05T18:23:02Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2025-07-17T15:32:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=18da8b6f517e33514fe5439fc2bc956fda707a41'/>
<id>urn:sha1:18da8b6f517e33514fe5439fc2bc956fda707a41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dirclient: Use the new Tunnel interface</title>
<updated>2025-08-05T18:23:02Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2025-05-05T17:29:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f89c0b38df232e5c8aa87195fb075e528e883706'/>
<id>urn:sha1:f89c0b38df232e5c8aa87195fb075e528e883706</id>
<content type='text'>
This entirely removes the requirement on ClientCirc.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>Rename last_hop to last_hop_info to fix name conflict</title>
<updated>2025-07-10T13:41:48Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-07-07T14:41:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9ccccf8cf42e51f0adc63c2a3c942b8bd1c35e8b'/>
<id>urn:sha1:9ccccf8cf42e51f0adc63c2a3c942b8bd1c35e8b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dirclient: Make SourceInfo::from_circuit public.</title>
<updated>2025-07-10T13:41:48Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-06-18T17:01:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=19cac3f79d82c6e9f79967d0688a073d8a23c446'/>
<id>urn:sha1:19cac3f79d82c6e9f79967d0688a073d8a23c446</id>
<content type='text'>
</content>
</entry>
</feed>
