These HTTP resources are provided for CouchDB server root level.
[httpd_global_handlers]
/ = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>}
The favicon handler looks for favicon.ico file within specified directory:
[httpd_global_handlers]
favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "/usr/share/couchdb/www"}
[httpd_global_handlers]
_active_tasks = {couch_httpd_misc_handlers, handle_task_status_req}
Provides a list of all server’s databases:
[httpd_global_handlers]
_all_dbs = {couch_httpd_misc_handlers, handle_all_dbs_req}
Note
Sometimes you don’t want to disclose database names for everyone, but you also don’t like/want/able to setup any proxies in front of CouchDB. Removing this handler disables _all_dbs resource and there will be no way to get list of available databases.
The same also is true for other resource handlers.
Provides resource to work with CouchDB config remotely. Any config changes that was made via HTTP API are applied automatically on fly and doesn’t requires server instance to be restarted:
[httpd_global_handlers]
_config = {couch_httpd_misc_handlers, handle_config_req}
[httpd_global_handlers]
_log = {couch_httpd_misc_handlers, handle_log_req}
[httpd_global_handlers]
_oauth = {couch_httpd_oauth, handle_oauth_req}
Provides an API to run temporary replications:
[httpd_global_handlers]
_replicate = {couch_replicator_httpd, handle_req}
[httpd_global_handlers]
_restart = {couch_httpd_misc_handlers, handle_restart_req}
Provides a resource with information about the current user’s session:
[httpd_global_handlers]
_session = {couch_httpd_auth, handle_session_req}
[httpd_global_handlers]
_stats = {couch_httpd_stats_handlers, handle_stats_req}
The _utils handler serves Futon‘s web administration page:
[httpd_global_handlers]
_utils = {couch_httpd_misc_handlers, handle_utils_dir_req, "/usr/share/couchdb/www"}
In similar way, you may setup custom handler to let CouchDB serve any static files.
Provides a resource to get UUIDs generated by CouchDB:
[httpd_global_handlers]
_uuids = {couch_httpd_misc_handlers, handle_uuids_req}
This is useful when your client environment isn’t capable of providing truly random IDs (web browsers e.g.).
These HTTP resources are available on every CouchDB database.
[httpd_db_handlers]
_all_docs = {couch_mrview_http, handle_all_docs_req}
[httpd_db_handlers]
_changes = {couch_httpd_db, handle_changes_req}
[httpd_db_handlers]
_compact = {couch_httpd_db, handle_compact_req}
[httpd_db_handlers]
_design = {couch_httpd_db, handle_design_req}
[httpd_db_handlers]
_temp_view = {couch_mrview_http, handle_temp_view_req}
[httpd_db_handlers]
_view_cleanup = {couch_mrview_http, handle_cleanup_req}
These HTTP resources are provided for design documents.
- _compact¶
[httpd_design_handlers] _compact = {couch_mrview_http, handle_compact_req}
- _info¶
[httpd_design_handlers] _info = {couch_mrview_http, handle_info_req}
- _list¶
[httpd_design_handlers] _list = {couch_mrview_show, handle_view_list_req}
- _rewrite¶
[httpd_design_handlers] _rewrite = {couch_httpd_rewrite, handle_rewrite_req}
- _show¶
[httpd_design_handlers] _show = {couch_mrview_show, handle_doc_show_req}
- _update¶
[httpd_design_handlers] _update = {couch_mrview_show, handle_doc_update_req}
- _view¶
[httpd_design_handlers] _view = {couch_mrview_http, handle_view_req}