Skip to content

feat: allow getting Host's inner Authority value - #238

Open
wfraser wants to merge 1 commit into
hyperium:masterfrom
wfraser:patch-1
Open

wfraser wants to merge 1 commit into
hyperium:masterfrom
wfraser:patch-1

Conversation

@wfraser

@wfraser wfraser commented Sep 25, 2026 •

Copy link
Copy Markdown

If I have a Host, and need an Authority, right now I have to do Authority::from_str(&host.to_string()) which involves an extra unnecessary string allocation and parse.

(The clone here is a cheap refcount increment because Authority is backed by a Bytes.)

If I have a `Host`, and need an `Authority`, right now I have to do `Authority::from_str(&host.to_string())` which involves an extra  unnecessary string allocation and parse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant