dead_horse
|
efdd7d3716
|
less strict for status, close #350
add res.message[=]
|
2014-10-09 23:20:53 +08:00 |
|
TJ Holowaychuk
|
7b3e3cbad5
|
add fn assertion to app.use(). Closes #337
|
2014-08-20 13:28:34 -07:00 |
|
Jonathan Ong
|
9455726c00
|
finished -> on-finished
removes the writable test because it’s fake and there are tests for
on-finished for this case
|
2014-08-16 02:58:06 -07:00 |
|
Jonathan Ong
|
1605f33760
|
add context.inspect(), cleanup app.inspect()
closes #323 closes #250
|
2014-08-02 18:24:53 -07:00 |
|
TJ Holowaychuk
|
90c528c5e8
|
remove if (!err) from app.onerror
we assert instanceof Error right below
|
2014-06-05 16:37:28 -07:00 |
|
dead_horse
|
4979077562
|
assert non-error obj pass to app.onerror, fixed #287
|
2014-06-04 14:16:25 +08:00 |
|
TJ Holowaychuk
|
c16211c5d6
|
refactor
|
2014-05-01 17:46:09 -07:00 |
|
TJ Holowaychuk
|
f17629d19f
|
remove .outputErrors, suppress output when handled by the dev. Closes #272
|
2014-05-01 16:29:37 -07:00 |
|
TJ Holowaychuk
|
4ff54e5c13
|
ocd
|
2014-05-01 16:25:08 -07:00 |
|
TJ Holowaychuk
|
80ace2c0bb
|
add nicer error formatting
|
2014-05-01 16:18:40 -07:00 |
|
TJ Holowaychuk
|
15ab936001
|
change .status default to 404. Closes #263
|
2014-04-28 21:17:46 -07:00 |
|
Jonathan Ong
|
0cacc5706a
|
use koa-is-json
|
2014-04-25 00:15:33 -07:00 |
|
TJ Holowaychuk
|
74cb04e7c1
|
refactor
|
2014-04-15 08:39:40 -07:00 |
|
TJ Holowaychuk
|
0a954c8d99
|
ocd
|
2014-04-15 08:35:10 -07:00 |
|
dead_horse
|
b06bb3cb85
|
simplify respond
|
2014-04-15 23:31:11 +08:00 |
|
TJ Holowaychuk
|
95a78c3a44
|
Merge pull request #255 from dead-horse/stream-body
make sure all intermediate stream bodies will be destroy
|
2014-04-14 15:34:13 -07:00 |
|
dead_horse
|
69c82f63b5
|
fix length when .body is missing
|
2014-04-13 11:35:28 +08:00 |
|
dead_horse
|
64aad129d3
|
fix this.status= in this.body
fix default status set bug in this.body=null.
do not call this.status= if this.status exist.
make sure empty content status remove content headers
|
2014-04-10 11:47:30 +08:00 |
|
dead_horse
|
329d2b94db
|
make sure all intermediate stream bodies will be destroy and have error handle
|
2014-04-10 00:02:13 +08:00 |
|
Dmitry Mazuro
|
9e8d6a3aa0
|
ocd
|
2014-03-24 21:21:15 +03:00 |
|
Jonathan Ong
|
52cb57cc7e
|
fix overwriting of content-type w/ HEAD requests
|
2014-03-23 04:01:14 -07:00 |
|
Jonathan Ong
|
182f9d6fa4
|
refactor: use statuses
|
2014-03-12 18:29:14 -07:00 |
|
TJ Holowaychuk
|
895cf4040c
|
add app.toJSON()
|
2014-03-11 11:01:33 -07:00 |
|
Jonathan Ong
|
cb532b7bef
|
this.writable to check if the socket is writable
because node sucks haha
|
2014-02-15 02:06:08 -08:00 |
|
TJ Holowaychuk
|
aa08845c70
|
remove app.jsonSpaces setting. Closes #202
|
2014-01-31 18:39:47 -08:00 |
|
Jonathan Ong
|
ea5757ff57
|
remove app.keys getter/setter
closes #203
|
2014-01-31 16:09:29 -08:00 |
|
Jonathan Ong
|
c5655e093a
|
bump cookies to 0.4.0
no longer need to do that keygrip stuff, though i’m more inclined to
remove all the error checking.
|
2014-01-31 13:52:27 -08:00 |
|
Jonathan Ong
|
2bc3bb7327
|
this.respond=false for bypassing koa's response handling
closes #198
|
2014-01-24 14:38:40 -08:00 |
|
Jonathan Ong
|
ea1a631bb1
|
bump finished and mocha
|
2014-01-16 22:33:02 -08:00 |
|
Jonathan Ong
|
b7b1c0fd44
|
better 404 handling
|
2013-12-29 22:26:19 -08:00 |
|
Jonathan Ong
|
51da356a5f
|
debug: check for fn._name as well
|
2013-12-29 16:04:06 -08:00 |
|
Jonathan Ong
|
7fe4133b4a
|
refactor: move content negotiation to accepts
|
2013-12-27 18:56:02 -08:00 |
|
Jonathan Ong
|
0d9336622c
|
use yield *next internally
|
2013-12-22 14:48:28 -08:00 |
|
mako-taco
|
9fe483ca76
|
handle manually written responses
|
2013-12-22 14:46:36 -08:00 |
|
Jonathan Ong
|
879293f548
|
use on-socket-error
|
2013-12-20 14:39:53 -08:00 |
|
Jonathan Ong
|
61d437d746
|
remove next in callback for now
revisit mounting later
|
2013-12-19 23:13:37 -08:00 |
|
Jonathan Ong
|
38d5bad4d1
|
bumpity boop co
|
2013-12-19 22:33:35 -08:00 |
|
Jonathan Ong
|
938a67c94f
|
lint: remove unused requires
duh.
|
2013-12-19 21:16:19 -08:00 |
|
Jonathan Ong
|
34104c9af3
|
refactor: allow any streams with .pipe method
|
2013-12-19 21:14:47 -08:00 |
|
TJ Holowaychuk
|
70971dcb53
|
add GeneratorFunction assertion for app.use(). Closes #120
breaks old old shit but thats ok, super early in the game
|
2013-12-19 10:03:08 -08:00 |
|
TJ Holowaychuk
|
171892c669
|
fix: cleanup socker error handler on response
|
2013-12-19 08:53:48 -08:00 |
|
TJ Holowaychuk
|
1769f9c431
|
add socket error-handling. Closes #114
|
2013-12-17 17:37:35 -08:00 |
|
TJ Holowaychuk
|
309f2ac00e
|
add debug() for .listen() and .keys=
|
2013-11-26 21:26:05 -08:00 |
|
Jonathan Ong
|
1dd1d02db0
|
app.respond: support 205 status codes as no-content
pretty new to me, but it’s basically the same as 204
|
2013-11-19 22:20:17 -08:00 |
|
Jonathan Ong
|
9407d7776c
|
context: cross-reference request and response
|
2013-11-18 14:10:11 -08:00 |
|
TJ Holowaychuk
|
cb682ed904
|
add body.close check for HEAD requests
|
2013-11-15 11:33:14 -08:00 |
|
TJ Holowaychuk
|
27d1336af5
|
Merge pull request #89 from koajs/keygrip
add keygrip support
|
2013-11-15 11:31:23 -08:00 |
|
TJ Holowaychuk
|
f3a6f6ae39
|
fix stream leak on HEAD. Closes #91
|
2013-11-15 10:49:28 -08:00 |
|
TJ Holowaychuk
|
f4b7f279ea
|
ocd
|
2013-11-15 10:09:56 -08:00 |
|
Jonathan Ong
|
0362c8e457
|
add app.keys support
|
2013-11-15 10:04:07 -08:00 |
|