Module request

Source
Expand description

Descriptions objects for different kinds of directory requests that we can make.

Modules§

sealed 🔒
Declare an inaccessible public type.

Structs§

AuthCertRequest
A request for one or more authority certificates.
ConsensusRequest
A Request for a consensus directory.
DisplayRequestable
A wrapper to implement Requestable::debug_request.
HsDescDownloadRequesths-client
A request to download a hidden service descriptor
HsDescUploadRequesths-service
A request to upload a hidden service descriptor
MicrodescRequest
A request for one or more microdescriptors
RouterDescRequestrouterdesc
A request for one, many or all router descriptors.
RoutersOwnDescRequestrouterdesc
A request for the descriptor of whatever relay we are making the request to
SkewLimit 🔒
How much clock skew do we allow in the distance between the directory cache’s clock and our own?

Enums§

RequestedDescs 🔒 routerdesc
Tracks the different router descriptor types.

Constants§

UNIVERSAL_ENCODINGS 🔒
Encodings that all Tor clients support.

Traits§

Requestable
A request for an object that can be served over the Tor directory system.

Functions§

add_common_headers 🔒
Add commonly used headers to the HTTP request.
all_encodings 🔒
List all the encodings we accept
digest_list_stringify 🔒
Convert a list of digests in some format to a string, for use in a request

Type Aliases§

Result 🔒
Alias for a result with a RequestError.