Skip to content

Commit

Permalink
Clarify example path behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith authored and djc committed Dec 22, 2020
1 parent a92e070 commit 4e6f946
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quinn/examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ If the file is on the server, it will receive the response.
In a new terminal execute:

```test
$ cargo run --example client https://localhost:4433/README.md
$ cargo run --example client https://localhost:4433/Cargo.toml
```

where `Cargo.toml` is any file in the directory passed to the server.

**Result:**

The output will be the contents of this README.
Expand All @@ -35,6 +37,10 @@ running it with `cargo run --example server -- ./ --listen 127.0.0.1:4433`. The
IPv6 by default, `localhost` tends to resolve to IPv4, and support for accepting IPv4 packets on
IPv6 sockets varies between platforms.

If the client prints `failed to process request: failed reading file`, the request was processed
successfully but the path segment of the URL did not correspond to a file in the directory being
served.

## Minimal Example
The `connection.rs` example intends to use the smallest amount of code to make a simple QUIC connection.
The server issues it's own certificate and passes it to the client to trust.
Expand Down

0 comments on commit 4e6f946

Please sign in to comment.