@ 符号在 REST URL 中是否有特殊含义?
例如 https://host/students/{id}/@classes
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
这意味着它只是可以在路径段中使用的另一个字符。
当本地路由实现看到路径中带有未转义的U+0040的 URI 时,它可能会做一些聪明的事情,但对于通用 HTTP 组件来说,它只是一个字母。
请注意,在URI的权限元素中,U+0040 作为分隔符确实具有特殊含义
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
hier-part = "//" authority path-abempty
/ path-absolute
/ path-rootless
/ path-empty
authority = [ userinfo "@" ] host [ ":" port ]
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句