Skip to main content

Module hdr

Module hdr 

Source
Expand description

Constants and code for the HTTP headers we use.

ConstantsΒ§

ALL_REQUEST_HEADERS πŸ”’
A list of all the headers that we support from client-to-proxy.
CONTENT_TYPE πŸ”’
Used to indicate the media type of the resource.
HOST πŸ”’
Specifies the domain name of the server and (optionally) the TCP port number on which the server is listening.
PROXY_AUTHORIZATION πŸ”’
Contains the credentials to authenticate a user agent to a proxy server.
SERVER πŸ”’
Contains information about the software used by the origin server to handle the request.
TOR_CAPABILITIES πŸ”’
Proxy-to-client: A list of the capabilities that this proxy provides.
TOR_FAMILY_PREFERENCE πŸ”’
Client-to-proxy: Which IP family should we use?
TOR_REQUEST_FAILED πŸ”’
Proxy-to-client: A machine-readable list of failure reasons.
TOR_RPC_TARGET πŸ”’
Client-To-Proxy: The ID of an RPC object to receive our request.
TOR_STREAM_ISOLATION πŸ”’
Client-To-Proxy: An isolation token to use with our stream.
VIA πŸ”’
Added by proxies to track routing.
X_TOR_STREAM_ISOLATION πŸ”’
Client-To-Proxy: An isolation token to use with our stream. (Legacy name.)

FunctionsΒ§

uniq_utf8 πŸ”’
Return the unique string-valued value of the header name; or None if the header doesn’t exist, or an error if the header is duplicated or not UTF-8.