What does “abempty” mean in the term “path-abempty” in the context of RFC3986?

匿名 (未验证) 提交于 2019-12-03 08:54:24

问题:

See: https://tools.ietf.org/html/rfc3986#section-3

And: https://tools.ietf.org/html/rfc3986#section-3.3

The origin of "abempty" is mysterious to me, and a quick search didn't turn up any definitions of it.

回答1:

"abempty", as it states in the comments to the right of its usage in the rfc you reference, means that its value can be either an absolute path or empty so (abempty).



回答2:

“A path is always defined for a URI” (Section 3.3).

“Abempty”, meaning away from

However, when the authority is zero length and the path is empty, there is no way to distinguish the two components, hence a path-abempty path - it "begins with "/" or is empty" (Section 3.3) depending on the circumstances.

Source: http://w3-org.9356.n7.nabble.com/path-abempty-in-URI-td170118.html (See Fielding's response to Petch.)



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!