Crate ptth_server[][src]

PTTH Server

The PTTH server is an HTTP server that can serve files from behind a firewall, because it only makes outgoing HTTP connections to a PTTH relay.

View from outside the PTTH tunnel:
 
* HTTP client
|
|   HTTP(S) requests
V
* ptth_relay
^
|   HTTP(S) requests
|
* ptth_server
 
View from inside the PTTH tunnel:
 
* HTTP client
|
|   HTTP(S) requests
V
* ptth_relay
|
|   HTTP(S) requests
V
* ptth_server

Modules

errors
file_server

In-process file server module with byte range and ETag support

load_toml

Load and de-serialize structures from TOML, with a size limit and checking permissions (On Unix)

Structs

Builder
Config

Config for ptth_server itself

ConfigFile

Config for ptth_server and the file server module

State

Functions

run_server

Runs a ptth_server instance with the built-in file server module