Crate ptth_core[][src]

PTTH Core

Common code used by both ptth_relay and ptth_server. Most users will want to use those binary crates directly.

Modules

graceful_shutdown

Wrapper for graceful and forced shutdowns of ptth_relay and ptth_server

http_serde

An abstraction over HTTP that is easy to (de)serialize

prelude

Constants

PTTH_MAGIC_HEADER

ptth_server packs its response headers into this request header

Functions

gen_key

Generates 64 bytes of entropy and returns it as Base64