hyper-srv

Crates.iohyper-srv
lib.rshyper-srv
version0.5.0
sourcesrc
created_at2019-12-09 10:05:55.292074
updated_at2023-10-22 14:11:34.572805
descriptionA wrapper around Hyper's connector with ability to preresolve SRV DNS records.
homepagehttps://github.com/mahou-shoujo/hyper-srv-rs.git
repositoryhttps://github.com/mahou-shoujo/hyper-srv-rs.git
max_upload_size
id187896
size38,762
Eugene Palmoff (mahou-shoujo)

documentation

README

Hyper SRV connector

Build Status

This crate provides a wrapper around Hyper's connector with ability to preresolve SRV DNS records before supplying resulting host:port pair to the underlying connector. The exact algorithm is as following:

  1. Check if a connection destination could be (theoretically) a srv record (has no port, etc). Use the underlying connector otherwise.
  2. Try to resolve the destination host and port using provided resolver (if set). In case no srv records has been found use the underlying connector with the origin destination.
  3. Use the first record resolved to create a new destination (A/AAAA) and finally pass it to the underlying connector.
Commit count: 36

cargo fmt