<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-dirclient/src/response.rs, branch arti-1.2.1</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-1.2.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-1.2.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-03-13T16:30:53Z</updated>
<entry>
<title>Run maint/add_warning.</title>
<updated>2024-03-13T16:30:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-03-13T16:30:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c0c9bd15d42897825dd0ab3d3b8dd1c17bd6320c'/>
<id>urn:sha1:c0c9bd15d42897825dd0ab3d3b8dd1c17bd6320c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Preserve HTTP status text in dirclient errors.</title>
<updated>2023-11-29T20:14:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-11-29T20:09:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e38219a1688f76288c61e42ee56cbd646a1c76c8'/>
<id>urn:sha1:e38219a1688f76288c61e42ee56cbd646a1c76c8</id>
<content type='text'>
The HTTP status text is often useful for diagnosing errors.  Tor
directory and hsdir caches frequently put useful messages there,
especially when rejecting an uploaded document.

Inspired by #1142.
</content>
</entry>
<entry>
<title>tor-dirclient: Mark `DirResponse` as `#[must_use]`.</title>
<updated>2023-10-03T11:07:20Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2023-10-02T17:47:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=61c5a22017b4bd2a581090523088ce6af0bd7db1'/>
<id>urn:sha1:61c5a22017b4bd2a581090523088ce6af0bd7db1</id>
<content type='text'>
Not checking whether the response is successful can have unintended
consequences.
</content>
</entry>
<entry>
<title>Run maint/add_warning to add lint block everywhere</title>
<updated>2023-08-23T09:34:00Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-08-22T14:28:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=42df88d6bf6dbb460d2e5e1cd4838aafaffbe9ac'/>
<id>urn:sha1:42df88d6bf6dbb460d2e5e1cd4838aafaffbe9ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Run maint/add_warning to actually apply new lint allows</title>
<updated>2023-07-10T12:49:51Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-10T11:19:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=473447a82e099fd52a674c28f5bc24b3e05208c0'/>
<id>urn:sha1:473447a82e099fd52a674c28f5bc24b3e05208c0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow clippy::unchecked_duration_subtraction in tests</title>
<updated>2023-01-27T13:28:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:01:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6dd92843edf2bd4c58de62a0d562921e4191ada'/>
<id>urn:sha1:a6dd92843edf2bd4c58de62a0d562921e4191ada</id>
<content type='text'>
This panics on error, and we're fine with a panic on misbehavior in
tests.
</content>
</entry>
<entry>
<title>tor-dirclient: Replace OwnedChanTarget with LoggedChanTarget in SourceInfo</title>
<updated>2022-11-23T18:28:38Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-23T15:13:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ef5a58e1585b478e26fd7c18b61cdf7b1e069e93'/>
<id>urn:sha1:ef5a58e1585b478e26fd7c18b61cdf7b1e069e93</id>
<content type='text'>
SourceInfo primarily appears in errors, here and in (indirectly)
tor-dirmgr.

This
 1. Makes the errors smaller
 2. Redacts (currently, scrubs) the chantarget when safe logging is enabled

This commit therefore deals with both tor-dirmgr and tor-dirclient
errors, from the pov of error information that should become sensitive
as part of bridge support.

The error pyaloads directly in tor_dirmgr/src/err.rs don't seem to
contain anything in that category.
</content>
</entry>
<entry>
<title>tor-dirclient: Response: Provide into_output_string</title>
<updated>2022-11-03T11:37:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-31T18:28:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0fb535ba28f6fd10d62ff4fb3d89a9f5da8160d3'/>
<id>urn:sha1:0fb535ba28f6fd10d62ff4fb3d89a9f5da8160d3</id>
<content type='text'>
This is the missing one of the full set.  It turns out that I wanted
this rather than the non-consuming output_string.
</content>
</entry>
<entry>
<title>tor-dirclient::DirResponse: provide output_string</title>
<updated>2022-10-25T19:12:56Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-21T16:10:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b68f7af79bf438aedfeff775183d89c0d1b45699'/>
<id>urn:sha1:b68f7af79bf438aedfeff775183d89c0d1b45699</id>
<content type='text'>
This gives callers a nice error type with source and everything.
</content>
</entry>
<entry>
<title>tor-dirclient: Provide fallible DirResponse::output and into_output</title>
<updated>2022-10-20T16:24:53Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-19T11:20:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7b2a0fbcb1ea8a3bed0277353728c25309879913'/>
<id>urn:sha1:7b2a0fbcb1ea8a3bed0277353728c25309879913</id>
<content type='text'>
</content>
</entry>
</feed>
