koa-lite/test/request
Aaron Heckmann 6392ee0407 return same object from request.query
Before this change, calling request.query when there was no querystring
resulted in a new object created and returned each time. If the resulting
object was ever changed, accessing request.query would not reflect it and
cause weird bugs.
2015-05-21 12:55:58 -07:00
..
accepts.js remove .request accept tests the fail 2014-06-03 21:35:11 -07:00
acceptsCharsets.js remove .request accept tests the fail 2014-06-03 21:35:11 -07:00
acceptsEncodings.js better content negotiation docs 2014-01-18 14:22:53 -08:00
acceptsLanguages.js remove .request accept tests the fail 2014-06-03 21:35:11 -07:00
charset.js make sure helpers return strict string 2015-04-29 01:44:02 +08:00
fresh.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
get.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
header.js expose app-specific prototypes, cleanup/fix tests 2013-11-13 18:41:40 -08:00
headers.js alias request.headers as request.header 2014-08-07 00:04:21 +08:00
host.js make sure req.host and req.hostname return strict string 2015-03-30 17:44:32 +08:00
hostname.js make sure req.host and req.hostname return strict string 2015-03-30 17:44:32 +08:00
href.js ctx.request.href: get full request url, include `protocol`, `host` and `originalUrl` 2014-12-27 14:17:00 -08:00
idempotent.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
inspect.js ocd 2014-11-16 21:52:14 +08:00
ip.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
ips.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
is.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
length.js ocd 2014-11-16 21:52:14 +08:00
path.js this.originalUrl && this.request.originalUrl 2013-11-14 14:18:05 -08:00
protocol.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
query.js return same object from request.query 2015-05-21 12:55:58 -07:00
querystring.js ctx.search and ctx.request.search 2013-11-18 19:29:29 -08:00
search.js ctx.search and ctx.request.search 2013-11-18 19:29:29 -08:00
secure.js expose app-specific prototypes, cleanup/fix tests 2013-11-13 18:41:40 -08:00
stale.js add koa Request / Response objects and delegation. Closes #52 2013-11-13 09:01:15 -08:00
subdomains.js add more test case, fix req.idempotent 2014-07-06 16:52:02 +08:00
type.js make sure helpers return strict string 2015-04-29 01:44:02 +08:00