📝 docs: update README before publishing to crates.io
parent
c3858ec8bf
commit
2c4d46388a
|
@ -11,7 +11,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "always_equal"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
|
||||
[[package]]
|
||||
name = "ansi_term"
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
# 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
|
||||
```
|
|
@ -1,8 +1,34 @@
|
|||
//! # PTTH Server
|
||||
//!
|
||||
//! The PTTH server makes outgoing HTTP connections to a
|
||||
//! PTTH relay, and then serves incoming HTTP requests through
|
||||
//! the relay.
|
||||
//! 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
|
||||
//! ```
|
||||
|
||||
#![warn (clippy::pedantic)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue