hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Documentation for `header_read_timeout` is incomplete

Open jorendorff opened this issue 1 year ago • 4 comments

Three mini-issues here:

jorendorff avatar Feb 09 '24 22:02 jorendorff

The example Timer implementation for Tokio is a working example. The module is private, but we're exposing hyper::rt::{Sleep, Timer} here, which is what you'd need to implement this.

dswij avatar Feb 14 '24 19:02 dswij

I agree with all of that. I think the three points all still stand, as opportunities for improvement. Will eventually give it a shot if nobody beats me to it.

jorendorff avatar Feb 15 '24 14:02 jorendorff

That's fair. The doc for rt::{Timer,Sleep} is also asked in #3411.

dswij avatar Feb 16 '24 18:02 dswij

There is an implementation available in hyper-util, maybe this can be mentioned in the documentation.

james58899 avatar Feb 18 '24 07:02 james58899

The docs for hyper::rt will be added in https://github.com/hyperium/hyperium.github.io/pull/121.

Will close this issue since we're also tracking it in #3411, and header_read_timeout docs were updated.

Thanks for the report @jorendorff !

dswij avatar Feb 29 '24 10:02 dswij