hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.58k stars 1.6k forks source link

doc(service): add note about error handling in Service trait (#3659) #3712

Closed yinheli closed 3 months ago

yinheli commented 3 months ago

The Service trait now includes a note about the behavior of returning an Error to a hyper server, which can cause the connection to be abruptly aborted depending on the protocol. This information is important for developers working with hyper servers.