Skip to main content

binding

Function binding 

Source
pub(crate) fn binding(recorded: &str, origin: &str) -> Binding
Expand description

Whether the entry’s recorded site fits origin (https://host[:port]): a recorded host fits that host and its subdomains; a recorded name (GitHub) fits a host whose registrable name is it (api.github.com, not github.evil.example). With no public-suffix list the name check is the host’s second label from the end, so shop.example.co.uk doesn’t fit Example: a refusal to bind, never a wrong yes.