GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-chttpd/pull/53
Epi hooks
This is one of the series of PRs to make couchdb plugable. I'll provide
complete list of dependent PRs in https://github.com/apache/couchdb-couch
repository.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloudant/couchdb-chttpd epi_hooks
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-chttpd/pull/53.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #53
----
commit 3d7ea0ceed7177a98c927c1952e3c8865a8b4c90
Author: ILYA Khlopotov <[email protected]>
Date: 2015-06-19T21:12:33Z
Derive HandlerKey from path_parts
Conflicts:
src/chttpd.erl
commit 1f82d4c27588c92f25009d5325bf3a2cf4dab0fc
Author: ILYA Khlopotov <[email protected]>
Date: 2015-07-29T16:40:23Z
Introduce `chttpd_auth:authenticate` hook
commit 605ab95c6fae4b7431f8732559d84da633fb6ebc
Author: ILYA Khlopotov <[email protected]>
Date: 2015-06-22T12:32:39Z
Refactor handle_request/1 to use #httpd_res{}
Pass more info into #httpd{} and introduce #httpd_res{} so we can
abstract updating stats and logging of request into separate functions.
We also prepare for introduction of before_request/after_request hooks.
Conflicts:
src/chttpd.erl
commit fb101ccc8230dbb564dafdb9356248115e25499a
Author: ILYA Khlopotov <[email protected]>
Date: 2015-06-22T18:37:54Z
Use #httpd.absolute_uri
commit cc10d7eeafa1b81d1a662ccc4e71df12097fcd91
Author: ILYA Khlopotov <[email protected]>
Date: 2015-07-29T17:15:50Z
Add `chttpd_auth:authorize/2` hook
commit 3d7450f306e8e1b79345465954e6a299b10825d3
Author: ILYA Khlopotov <[email protected]>
Date: 2015-06-29T13:19:11Z
Use `#httpd.cors_config`
commit 724a3d2e13ac57c12a96b17dddfe33c8f5ceb871
Author: ILYA Khlopotov <[email protected]>
Date: 2015-07-29T18:31:28Z
Add chttpd_plugin hooks
We add following hooks:
- chttpd_plugin:before_request/1
- chttpd_plugin:after_request/2
- chttpd_plugin:handle_error/1
commit 7efd59ef680782c800296f3020634560673ac2b6
Author: ILYA Khlopotov <[email protected]>
Date: 2015-07-29T18:59:42Z
Use private to_local instead of string:to_lower
commit 4d65d6a9f09dc9f8f96da0a84f99f71c625de274
Author: ILYA Khlopotov <[email protected]>
Date: 2015-07-31T13:27:20Z
Use `#chttpd.qs` field
commit 8d8ddfa1b007dca6bf2b51e897a4aa7ae991900b
Author: ILYA Khlopotov <[email protected]>
Date: 2015-07-31T18:35:24Z
Return `{error, {illegal_database_name, Name}}`
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---