I want to add scheme to uri
uri:=`http://`+`localhost:8080` //localhost:8080 uri.auth //null uri:=`http://`+`localhost` //http:///localhost/ uri.auth //""
Why no auth?
You should really use string literals for those sorts of things. As a URI literal, those won't be treated as you are thinking. For example "localhost:8080" is treated as an opaque URI of "scheme:path":
`localhost:8080`.scheme => localhost `localhost:8080`.pathStr => 8080
Login or Signup to reply.
go4 Mon 13 Sep 2010
I want to add scheme to uri
Why no auth?
brian Mon 13 Sep 2010
You should really use string literals for those sorts of things. As a URI literal, those won't be treated as you are thinking. For example "localhost:8080" is treated as an opaque URI of "scheme:path":