jstp / jstp-uri

The JSTP URI Scheme RFC
GNU General Public License v2.0
0 stars 0 forks source link

Should the method be included in the URI? #4

Closed xaviervia closed 10 years ago

xaviervia commented 10 years ago

Include the Method in the URI? For example:

jstp:GET?google.com:http//search/my+keyword

jstp:BIND?user//monje
xaviervia commented 10 years ago

Answer: YES. Last URI "pattern", in pseudo ABNF:

jstp-uri = scheme [ methods ] [ to-addresses ] resource [ from-addresses ]

scheme = "jstp:"
methods = method [method-pattern]
method = "GET#" / "POST#" / "PUT#" / "PATCH#" / "DELETE#"
method-pattern = method / "*#"
to-addresses = address *comma-address "//"
address = host-name [ ":" host-port ":" transport-protocol ] / "*" / "..."
host-name = 1*ALPHA
host-port = 1*DIGIT
transport-protocol = 1*ALPHA
comma-address = "," address
from-addresses = "//" address *comma-address
resource = resource-element *slash-resource-element
resource-element = asterisk / ellipsis / ":" 1*ALPHA / 1*(ASCII character except reserved ones)
slash-resource-element = "/" resource-element