// retoor <retoor@molodetz.nl>
import "http" for Url, Http, HttpResponse
var url1 = Url.parse("http://example.com/path")
System.print(url1.scheme) // expect: http
System.print(url1.host) // expect: example.com
System.print(url1.port) // expect: 80
System.print(url1.path) // expect: /path
var url2 = Url.parse("http://example.com:8080/test?foo=bar")
System.print(url2.port) // expect: 8080
System.print(url2.path) // expect: /test
System.print(url2.query) // expect: foo=bar
System.print(url2.fullPath) // expect: /test?foo=bar
var url3 = Url.parse("http://localhost/")
System.print(url3.host) // expect: localhost
System.print(url3.path) // expect: /