Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/eggjs/koa

Expressive middleware for node.js using ES2017 async functions, forked from koa v2.x
https://github.com/eggjs/koa

add overriding to application/json on ctx.body=object

since it cant be anything else, but if you have middleware that transforms
the object to xml or ...

3b2c55b68b557164cf25beef1f61e29c742575c3 authored about 11 years ago by TJ Holowaychuk <[email protected]>
fix test label typo

c4d194488c703597949bf0861b8e30ae36f66057 authored about 11 years ago by TJ Holowaychuk <[email protected]>
Merge pull request #58 from jonathanong/set-body-length

set length on body override

3b7a7b5047e209a810e92452bddbe6fb2c1969f1 authored about 11 years ago by TJ Holowaychuk <[email protected]>
Merge pull request #56 from jonathanong/bind-onerror

bind .onerror to context

ada1be13bc49a5d2692dcb302e554b559aebc3ec authored about 11 years ago by Jonathan Ong <[email protected]>
Merge pull request #61 from jonathanong/onerror-condition

onerror: check existence of error

881490299c9cd7c5b99eb703a884513f245976f3 authored about 11 years ago by Jonathan Ong <[email protected]>
onerror: check existence of error

50d73e3709d9d46985bc3e0e52ebdadcc2e0d95c authored over 11 years ago by Jonathan Ong <[email protected]>
debug: notify if a property is being overwritten

df367e074993b651e18e8bc175e6d4e9173c631e authored over 11 years ago by Jonathan Ong <[email protected]>
bind .onerror to context

98a386a48557d1bbcab97849f2d206ef48115572 authored over 11 years ago by Jonathan Ong <[email protected]>
set length on body override

0e829c17ad20c7153d77f890d0e51d96e514285a authored over 11 years ago by Jonathan Ong <[email protected]>
cleanup trailing whitespace in .js files

4aa75a1164669a0be7dd7128ecd9ff5c5aeda487 authored over 11 years ago by Jonathan Ong <[email protected]>
fix wiki link

1e340e388f6d760e4d7fd65c2bda7c6eb2f14c5e authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix ctx.body= content-type override check. Thanks @jonathanong

83fd83aaf89918390852bee7e0669adb5f1f5621 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add ctx.body= setter

this prevents a bunch of redundant checks that middleware may need to
check response length, typ...

11913f5e4e79b6a9416f69dc07d5975785cb0b97 authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge branch 'master' of github.com:koajs/koa

c5ecbd99acd0e141582ed2d2a0c779b9da111396 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add charset support to ctx.type=

04f4d72692a5132d026debc79fe080e56c13aebe authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge pull request #53 from ilsken/patch-1

Fixed typo

1232b692a8959392901991b9b29a03ef0da4c84b authored over 11 years ago by TJ Holowaychuk <[email protected]>
Fixed typo

`ctx.accept` -> `ctx.accepts`

886a292a51a564ced248e32bd1a53d0ef2e09966 authored over 11 years ago by Chris Tarquini <[email protected]>
add a todo

167530a9e64f38c0de12fe1b5bdefa9722be6def authored over 11 years ago by TJ Holowaychuk <[email protected]>
change app.onerror to ignore 404s

so you can easily unwind the stack for 404s

7a268860407d723b36f75009a6dff50d3cd5adc9 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

d7403552b953435731a2056d0d4c8bcd90981bb5 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add err.expose check for response handler to expose the err.message

fc25b79b99752e361a784f3b6e60fadc40bcc79b authored over 11 years ago by TJ Holowaychuk <[email protected]>
change ctx.error() to flag as err.expose

meaning the application could respond with this message if it likes

6db24f9fac7cf11f2d5088f62ff2e472f76c7623 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add ENOENT err.code support for 404

091d5010cd4762eccd246141aa932cb88031c30b authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix text/plain response for 500 errors

228c38cf3ea4fe5db7b98ebb902611a507aa9b84 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add socket error handling docs

28b5b85860abc403fd2bc0c01784853342a52653 authored over 11 years ago by TJ Holowaychuk <[email protected]>
remove socket error handling, use server "clientError"

92b741ac0a83d1608a5b4cd397c30a8f180cc86b authored over 11 years ago by TJ Holowaychuk <[email protected]>
remove a console.log

cf54f7d7d5589b77e086d82d9ac36650cbe5f45b authored over 11 years ago by TJ Holowaychuk <[email protected]>
add failing socket error handling test

2fe83a4e3d0db83d78f6466d54f220a254fd4058 authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix socket "error" handling

always has clientError now

02ae4f787d68eab7274af63161032407018a2832 authored over 11 years ago by TJ Holowaychuk <[email protected]>
remove unnecessary .bind()

67b49cf82d1947163e083d89a262416ddd39f9fc authored over 11 years ago by TJ Holowaychuk <[email protected]>
add app "error" test

42f5aa1e619e0c830f3cbae171b8f8a468233cdc authored over 11 years ago by TJ Holowaychuk <[email protected]>
add template integration example

6a51f73524f0f1cf5be8c2a85860d0074c7f9bf7 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

60576832df7b6456a8529dc82573e5816a1538aa authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

2733c61d0008d50a877b6bc6ce7cf181d5ae4402 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add co example

1680639232cd7ed22408ced240ff5fb9e3d3cca2 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

a79bfe332946fa45c80ea7b7c54180b9e47ce28a authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

6eb92c3bd1f38444008b4843737c24495c12cf40 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

74c452a93f8135a3b64c0bcb02885cd826eb9612 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

b132484dcf230004ea16286837bd28a19231ad77 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

33221d6574aad357536669162bd42c9866d75e74 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

4a0c55cc96803f116e6307d78c3c1887ef6765f3 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

c6dc504ce8bbfcd1b8e98ea711a734e81e3382e1 authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge branch 'master' of github.com:koajs/koa

f6161918eeecfafc726a47c96f0d6de9e7fb8b85 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

5459fb8c55d0c34433eae20c47c7b5dece59d86b authored over 11 years ago by TJ Holowaychuk <[email protected]>
add guide

60eb2edb86531c73a6fcedf3f04b64d4c84faafb authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge pull request #46 from karlbohlmark/json-response-length

use byteLength when calculating content-length

fab0150a639cf1dbb231e8af057bd8ba65b414f9 authored over 11 years ago by TJ Holowaychuk <[email protected]>
use byteLength when calculating content-length

520df772ef0eae861c36e1a55905f23c8a407846 authored over 11 years ago by Karl Böhlmark <[email protected]>
move downstream logic to response middleware

7754a3535a3538c87f6462d80cd54c30ad51eba3 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

37a7457d2897bec1381023fd77ad1703784bb7a1 authored over 11 years ago by TJ Holowaychuk <[email protected]>
use app.listen() in tests

3758f4b67512a6357c4223f3ea6c4bc79260e981 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add ctx to error-handling example

258f6625437fcef696e30c3f1869bb0f70b00dc5 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add docs for error ctx

a1edb2fe7c197711eca98b08c0eadaca94fd0063 authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge branch 'master' of github.com:koajs/koa

b3761b5da0ca04f46eb768890868d74f2afdb4d2 authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge pull request #44 from jonathanong/patch-1

pass context to errors

9046d080be2f4931924e604c41fbcc8f467f81b4 authored over 11 years ago by TJ Holowaychuk <[email protected]>
pass context to errors

errors are kind of useless without the context

a5208f5ce645481287595051485d3a02c3e7d918 authored over 11 years ago by Jonathan Ong <[email protected]>
Merge pull request #43 from kjbekkelund/patch-1

typo

9c904ebf23da48ab06e7ab3e47aa5b09718029c0 authored over 11 years ago by TJ Holowaychuk <[email protected]>
typo

baefcacff99046fbe965e0c5682949753e31619b authored over 11 years ago by Kim Joar Bekkelund <[email protected]>
add basic instrumentation

32d65cfe91946e8cc58fe7a8cd7c813e3ddc125c authored over 11 years ago by TJ Holowaychuk <[email protected]>
add names to simple example middleware

3eafcdd85a0e2d5453c8ec07ddcde2fd25e490cf authored over 11 years ago by TJ Holowaychuk <[email protected]>
change benchmark port

7db6987ccc480ba8f0736370822e876c30ec74e7 authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix simple example

0c19a060c4ddf22873a40915877811d540f4c762 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add context debug()

fae98c10ece0a0d9a0e76c5e912b50dc65cb18b2 authored over 11 years ago by TJ Holowaychuk <[email protected]>
change "unnamed" middleware to -, less junk output

ddc7347afe2b4a9ae5ebe0f40747ce81aa1e951b authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

52a60b715d0981b82d94dbe75de5426887369780 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add conditional middleware middleware example

56b27321337ce5b0ed01e4836e3e803262f9ba08 authored over 11 years ago by TJ Holowaychuk <[email protected]>
typo

552ef6fd5281361d6ab8973e73b95ea504ba46e7 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add conditional middleware example. Closes #5

1ceafd0f4e22aa3f5ed31e718139b9216e35f71a authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

e21938a13633ff9422a42b4240a3f4b1fcb5d6b6 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add Context#error(). Closes #31

ad0dd3cc39c27d71149dcaa8f7f7807cd7e3ed8e authored over 11 years ago by TJ Holowaychuk <[email protected]>
add error handling example

f6a2f54aef50e2edc5ae0d54ffa7e4d38c72f66a authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

5cc50ef2c8e2c8b6c83ea8030c102463d871bf93 authored over 11 years ago by TJ Holowaychuk <[email protected]>
change app to emit "error" events instead of app.error(fn)

99895aa215c5fc62c6de13fd5f73d224fa9994cc authored over 11 years ago by TJ Holowaychuk <[email protected]>
refactor examples

750748834e9fbfc453b9dd0396ee542e3e9d3c08 authored over 11 years ago by TJ Holowaychuk <[email protected]>
refactor example

b138f713fa375e27ac16f943f2c77b291ec572bc authored over 11 years ago by TJ Holowaychuk <[email protected]>
add pipe example. Closes #9

17d8f6707313892be5bcc1680bea368d5e449309 authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix app-level error delegation, always delgate

eb41a90b80f53b33d5a74b7175eaf5a4c99215d6 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add Context#hasContent

b047405cc54dc9801c308fddbd1dfea00dec8c43 authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

f7b8b2b6aefb53f0ee888fbe4f24e64fe158bbcf authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

3e0599851ab29b865312b488720b8b6f82de9cf1 authored over 11 years ago by TJ Holowaychuk <[email protected]>
replace "qs" with native "querystring" for now

9e699228593730591898705089277c766a527921 authored over 11 years ago by TJ Holowaychuk <[email protected]>
use GH style .repository

41f6108bba426f996198c5f9cd57bf41d6a490e5 authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge branch 'master' of github.com:koajs/koa

b747d8756aa41fce6654818a39b68b6a86016616 authored over 11 years ago by TJ Holowaychuk <[email protected]>
Merge pull request #37 from juliangruber/patch-4

add repository

2d5e7dcd5063689c0231140ab4c192458245b39e authored over 11 years ago by TJ Holowaychuk <[email protected]>
add repository

05044c4a8bd70197d08ab9fc535977ddfa928b21 authored over 11 years ago by Julian Gruber <[email protected]>
add authors

4026d46f7e0a64123731dcc44e83b7bf0b23a152 authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix .status= case sensitivity

6fb32165e3ca96f34869c2b560b93482e5d8a03f authored over 11 years ago by TJ Holowaychuk <[email protected]>
add app.error(fn). Closes #4

3439437c18055cf87557de5f8b8b0e09107af9c1 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add .querystring memoization

d2713418cc0d5e5c28aaa0e8d23c6b41896126d9 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add .query memoization for ultimate hello world benchmarks

261acbde88ca060f67161ef210426314bd4da5d4 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add memoization to .path. Closes #17

933ecd8747bb288a290e1798aa288cd6d0646754 authored over 11 years ago by TJ Holowaychuk <[email protected]>
change socket error listener to just use length

832a1dcc1e9c5374b30a4edba4c0283774502c5f authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix socket error handler event listener leak

4e4fcfc6427f5cac499d3b8927bc61579eb18150 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add socket error-handling. Closes #6

otherwise node just explodes, not a good default

fe89dc37838c0cc7d0e083fbe6536e66cc4efd81 authored over 11 years ago by TJ Holowaychuk <[email protected]>
fix .onerror bind for stream "error" handling

b4b0789d7a0712f45133eb703f3b5e56e2816a50 authored over 11 years ago by TJ Holowaychuk <[email protected]>
change .outputErrors to false for "test" env only

good to know in prod ;)

9d7720f2d8bf8177bc9fdcbefc9b0c0a7855dc6e authored over 11 years ago by TJ Holowaychuk <[email protected]>
add err.status support. Closes #20

2de010ca47b4996da024596e425558587b7d54be authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

f32c3540f459e0fba7c6f9b247dc499cc827a52e authored over 11 years ago by TJ Holowaychuk <[email protected]>
docs

e5c7632b07d1effab24e87faa153c58756f3f5f1 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add FAQ. Closes #12

20b2c9ff4a5f9a8d5c4e8cd042c76e25b4f93a00 authored over 11 years ago by TJ Holowaychuk <[email protected]>
add Context#cookies support. Closes #7

need to add signing support in there as well

ca7be7b89f6e8f5fba7f95295ca4b6dbdc8ce4d1 authored over 11 years ago by TJ Holowaychuk <[email protected]>