[ 
https://issues.apache.org/jira/browse/COUCHDB-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brad Anderson updated COUCHDB-353:
----------------------------------

    Attachment: default_handler.console.txt

This console dump shows that mochiweb is picking up the change and does not 
need to be restarted, as davisp was thinking might be required.

Note:  my new handler returns {ok, false} and doesn't delete the database.  The 
normal couch handler returns {ok, true} and performs the delete of the database.

> [PATCH] add default_handler into configuration for overriding 
> couch_httpd_db:handle_request/1 if needed
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-353
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-353
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 0.9
>            Reporter: Brad Anderson
>            Priority: Minor
>             Fix For: 0.10
>
>         Attachments: default_handler.console.txt, default_handler.patch
>
>
> To execute code other than couch_httpd_db:handle_request/1 for the default 
> handler function, we need to add a configuration option to specify the new 
> module/fun and execute that function upon a request.  This will allow devs to 
> execute alternate code for things like database creation and deletion, etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to