Currently the TryFrom<&str> implementation is the only way – as far as I can tell – to create an AccessControlAllowOrigin header for a specific origin. If you already have an Origin, it feels a bit silly to use TryFrom, since the conversion should be simple and infallible. This change adds that conversion.
Currently the
TryFrom<&str>
implementation is the only way – as far as I can tell – to create anAccessControlAllowOrigin
header for a specific origin. If you already have anOrigin
, it feels a bit silly to useTryFrom
, since the conversion should be simple and infallible. This change adds that conversion.