[−][src]Crate hyper_srv
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:
- Check if a connection destination could be (theoretically) a srv record (has no port, etc). Use the underlying connector otherwise.
- 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.
- Use the first record resolved to create a new destination (
A
/AAAA
) and finally pass it to the underlying connector.
Structs
ServiceConnecting | This future represents a connection in progress returned by |
ServiceConnector | A wrapper around Hyper's |
ServiceError | An error type used in |