Crate tor_dirclient[−][src]
Expand description
tor-dirclient
: Implements a minimal directory client for Tor.
Overview
Tor makes its directory requests as HTTP/1.0 requests tunneled over Tor circuits. For most objects, Tor uses a one-hop tunnel. Tor also uses a few strange and ad-hoc HTTP headers to select particular functionality, such as asking for diffs, compression, or multiple documents.
This crate provides an API for downloading Tor directory resources over a Tor circuit.
This crate is part of Arti, a project to implement Tor in Rust.
Modules
request | Descriptions objects for different kinds of directory requests that we can make. |
Structs
DirResponse | A successful (or at any rate, well-formed) response to a directory request. |
SourceInfo | Information about the source of a directory response. |
Enums
Error | An error originating from the tor-dirclient crate. |
Functions
download | Fetch a Tor directory object from a provided stream. |
get_resource | Fetch the resource described by |
Type Definitions
Result | Type for results returned in this crate. |