Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 358 Bytes
require = global.require
p = global.prettyPrint
print = global.print
throw = (err) {
p(err)
global.exit()
}
// Used to emit on errors when libuv badness happens
check = (status) {
if (status) {
throw(global.uv.lastError())
}
}
url = "http://candor.io:8080/foo/bar/baz.zip?magic=yes#instant"
p("parsed", require('http_parser').parseUrl(url))