koa-lite/test/request
Martin Iwanowski 327b65cb6b Use node 7+ WHATWG parser for hostname, fixes #1002 (#1004)
* Use node 7+ WHATWG parser for hostname, fixes #1002

* only use URL if host is IPv6, expose parsed URL

* catch invalid URLs, memoize empty obj

* hostname returns empty string when URL throws
2017-06-20 09:57:30 -07:00
..
accepts.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
acceptsCharsets.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
acceptsEncodings.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
acceptsLanguages.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
charset.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
fresh.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
get.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
header.js added setters for header and headers, fixes #991 2017-06-20 09:57:07 -07:00
headers.js added setters for header and headers, fixes #991 2017-06-20 09:57:07 -07:00
host.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
hostname.js Use node 7+ WHATWG parser for hostname, fixes #1002 (#1004) 2017-06-20 09:57:30 -07:00
href.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
idempotent.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
inspect.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
ip.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
ips.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
is.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
length.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
origin.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
path.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
protocol.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
query.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
querystring.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
search.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
secure.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
stale.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
subdomains.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
type.js test: Use Jest (#981) 2017-05-11 11:30:32 +08:00
whatwg-url.js Use node 7+ WHATWG parser for hostname, fixes #1002 (#1004) 2017-06-20 09:57:30 -07:00