aboutsummaryrefslogtreecommitdiff
path: root/examples/hyper-examples/src/bin
Commit message (Collapse)AuthorAgeFilesLines
* proto: Add crate-level exports for two extra stream types (fmt)Gabriela Moldovan2026-06-171-1/+1
|
* Fix typosTobias Stoeckmann2026-03-241-1/+1
| | | | Typos found with codespell
* arti(-client)/tor-hsservice: return None for disabled servicehashcatHitman2025-10-161-1/+7
| | | | | | | | | | There is no longer a hard error anywhere for trying to launch a service which is disabled in the config. Instead, it always means returning `Ok(None)`. The axum and hyper examples were updated again as a consequence. Signed-off-by: hashcatHitman <[email protected]>
* arti(-client): graceful service disable in arti onlyhashcatHitman2025-10-161-7/+1
| | | | | | | | | | | When a service is disabled in the config, `arti::onion_proxy::Proxy` handles it gracefully, and `arti_client::client::TorClient::launch_onion_service_with_hsid` and `arti_client::client::TorClient::launch_onion_service` both hard error. The axum and hyper examples were updated again as a consequence. Signed-off-by: hashcatHitman <[email protected]>
* arti/arti-client: add graceful service disablehashcatHitman2025-10-161-1/+7
| | | | | | | | | Hidden services disabled in the config are now handled more gracefully by arti/arti-client, before the hard error occurs. The axum and hyper examples were updated as a consequence. Signed-off-by: hashcatHitman <[email protected]>
* proto: Move the `stream` module under `client` (breaking).Gabriela Moldovan2025-08-181-1/+1
| | | | | | | | | | | | The `stream` module is client-specific, for the most part, so I am moving it under `client`. Later on, we will factor out the parts that can be shared with the relay implementation. Note: this is a breaking change as the deleted `stream` module was `pub`. We could've kept the module and reexported from it the public types from `tor_proto::client::stream`, but I think it's better to have this `client` namespacing, because it makes the separation between the client and relay parts clearer.
* hyper-examples: Run rustfmtIan Jackson2025-08-111-1/+3
|
* Merge branch 'main' into !2941Ian Jackson2025-08-111-2/+2
| | | | | | | | | | Conflicts: examples/hyper/hyper-http-client-example/Cargo.toml examples/hyper/hyper-http-hs-example/Cargo.toml In both cases, just the change of edition, which I have applied to examples/hyper-examples/Cargo.toml instead.
* hyper-examples: Cargo fmtnield2025-08-041-1/+4
|
* hyper-examples: Use std::time::Durationnield2025-08-041-1/+2
|
* hyper-examples: Use random nickname for onion servicenield2025-08-041-1/+1
|
* Merge branch 'main' into hyper-examplesnield2025-08-041-2/+2
| | | | | # Conflicts: # examples/hyper-examples/src/bin/hyper-http-hs-example.rs
* hyper-examples: Use native-tls instead of rustlsnield2025-07-211-21/+3
|
* hyper-examples: Typonield2025-07-201-1/+1
|
* hyper-examples: rustfmtnield2025-07-201-4/+7
|
* hyper-examples: Clarify comment regarding `is_fully_reachable`nield2025-07-201-3/+2
| | | | Previous comment was not clear. `is_fully_reachable` only gives false negatives, not false positives.
* hyper-examples: Simplify code for timeoutnield2025-07-201-51/+15
| | | | We removed the while loop.
* hyper-examples: Print messages to stderrnield2025-07-201-6/+6
|
* hyper-examples: Add comment why we use rustls and manual set root_certnield2025-07-201-0/+4
| | | | | | | | The reason we prefer `rustls` in this case is because `rustls` provides better portability then `native-tls` due to not being dependent on the system. We have to explicitely set the root_cert because `rustls` does not use the system CA Certs to remain portable.
* hyper-examples: Print messages to stderrnield2025-07-201-2/+2
|
* hyper-examples: Allow cli argument for test-urlnield2025-07-201-1/+4
|
* hyper-examples: Remove hyper-custom-connector-examplenield2025-07-201-249/+0
| | | | We will make a separate library for this.
* hyper-examples: Typonield2025-07-201-1/+1
|
* hyper-examples: Fix example hyper-http-hs-examplenield2025-07-201-13/+67
| | | | | | | | This example previously remained stuck in the while loop without any output, seeming as if this example is not working. This because the method `is_fully_reachable` is no guarantee for the actual status of the onion service. It might return false while the service is actually reachable. We added a timeout to not remain stuck in the loop.
* hyper-examples: Rename example directorynield2025-07-203-0/+477
This directory had to be renamed because otherwise it would cause conflicts with the actual hyper crate in the CI pipeline.