What does “absurdity” mean in terms of path-inhibition in the context of RFC3986?

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 did not give any definitions.

+5
source share
3 answers

"abempty", because in the comments on the rule of its use in the rfc link you refer, this means that its value can be either ab the solution path or empty so ( abempty ).

+3
source

"Abempty", " ", . path-abempty , hier "//", path-abempty. - :/// URI.

, , , , , - " "/" " ( 3.3) .,

: http://w3-org.9356.n7.nabble.com/path-abempty-in-URI-td170118.html (. Petch.)

NB. "abempty" .

:

URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

hier "" URI.

hier-part = ("//" authority path-abempty) / path-absolute / path-rootless / path-empty

, , path path. , , :

reg-name = *( unreserved / pct-encoded / sub-delims )

Path-abempty , "//", path-abempty. Path-abempty :

path-abempty = *( "/" segment )

RFC : " , ("/")". reg-name , URI:

scheme://

. : " , ('//)". , URI, "://", - , URI .

, , . , , , (, , ) ; , : URI .

"abempty" , . , , , , .. .

:

URI , , URI, .

scheme://

URI , .

scheme:///
0

RFC 3986, 3.3: , abempty - ; ab-.

:

path-abempty  = *( "/" segment )                    ; begins with "/" or is empty
path-absolute = "/" [ segment-nz *( "/" segment ) ] ; begins with "/" but not "//"
path-noscheme = segment-nz-nc *( "/" segment )      ; begins with a non-colon segment
path-rootless = segment-nz *( "/" segment )         ; begins with a segment
path-empty    = 0<pchar>                            ; zero characters
  • Path-abempty - , , .
  • Path-absolute-or-empty .

My statement is based solely on logical assumptions, since I could not find the word etymology or who coined it. So if someone has the relevant knowledge to contradict or confirm: please share!

0
source

Source: https://habr.com/ru/post/1662502/


All Articles