"Example server" example in the docs doesn't actually run a server. #509
Labels
C-bug
Category: This is a bug.
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-docs
Topic: documentation
Bug Report
The docs have a section "Example server" section which claims to "run that service using hyper."
tower-http/tower-http/src/lib.rs
Lines 12 to 85 in 3f98dc1
However this doesn't seem to use Hyper at all and doesn't actually run any server. There is just hidden code to send a request to the
Service
from Rust.Description
It seems that either the wording around the example should be updated or the example should be fixed to actually run a server.
It would be nice to have a minimal server example, as it seems like right now the way to do this is to use a "full featured" framework like axum or warp just to run a tower Service.
The text was updated successfully, but these errors were encountered: