summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
AgeCommit message (Collapse)Author
2008-10-22First check-in of admin http authentication and authorization.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@706848 13f79535-47bb-0310-9956-ffa450edef68
2008-10-09make couch_httpd:send_error/4 publicJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@703274 13f79535-47bb-0310-9956-ffa450edef68
2008-10-06tiny whitespace fix for 409 database errorJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@701960 13f79535-47bb-0310-9956-ffa450edef68
2008-10-02HTTPd refactoring. Moved most code out of couch_httpd into associated ↵Damien F. Katz
modules (couch_httpd_view, couch_httpd_db, couch_httpd_misc_handlers). Also a fix to removed previous doc_by_seq index entries on compaction retry. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@701173 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23Changed call to Req:recv_body() by Damien's request.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@698260 13f79535-47bb-0310-9956-ffa450edef68
2008-09-20reduce=false closes COUCHDB-76John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@697427 13f79535-47bb-0310-9956-ffa450edef68
2008-09-16Add HTTP API for getting the complete config, and add a page to Futon that ↵Christopher Lenz
displays the configuration. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@696041 13f79535-47bb-0310-9956-ffa450edef68
2008-09-13Changes and refactorings to couch_configDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@694989 13f79535-47bb-0310-9956-ffa450edef68
2008-09-11Check-in of document purge functionality.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@694430 13f79535-47bb-0310-9956-ffa450edef68
2008-09-09Fix for attachment content-type conversion from/to binary in RESTful API.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@693435 13f79535-47bb-0310-9956-ffa450edef68
2008-09-08Fix retrieval of specific document revisions, which needed to be updated for ↵Christopher Lenz
the internal change to binaries. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@693115 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31Fix the config HTTP API for the changed JSON representation, remove the POST ↵Christopher Lenz
handling for setting option values (leaving only PUT), and add a GET /_config/section handler that allows enumerating the options in a section. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690670 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31Merged json_term_changes branch back into trunk.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690668 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30Rename 'module' to 'section', and 'variable' to 'option' in the config code.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690595 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30Implement attachment uploading in Futon.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690590 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30- Rename configuration options and sections to allow for a nicer .ini file ↵Jan Lehnardt
and HTTP API calls. - Enable .ini parser to read variable assignments with spaces around the '='-sign. - Remove inadequate comment. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690513 13f79535-47bb-0310-9956-ffa450edef68
2008-08-30Some cosmetic cleanup (removed trailing whitespace, fixed indentation, make ↵Christopher Lenz
the test runner script executable). git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690487 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20Merge runtimeconfig branch back into trunkJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@687336 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12HTTP COPY & MOVE for documents with testsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@685171 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08Idempotent document creation support, new HTTP api to generate UUIDs and ↵Damien F. Katz
support in the couch.js library for using them. Creating uuids client side ensure that document creation happens only once, despite automatic network retries. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@684092 13f79535-47bb-0310-9956-ffa450edef68
2008-08-07Fix for bug COUCHDB-100.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@683704 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05Fixed restart testing by making it far less likely a HTTP client will get a ↵Damien F. Katz
network error on a restart request. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682809 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05Added concurrent open db limit and a LRU cache for closing old databases ↵Damien F. Katz
when limit reached (configurable via MaxDbsOpen var in couch.ini). Refactored db update code in couch_db.erl into couch_db_updater.erl. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682560 13f79535-47bb-0310-9956-ffa450edef68
2008-07-29Fix for problem with count query arg in grouped reduce views. Previous fix ↵Damien F. Katz
would keep enumerating over subsequent view results despite not returning them. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@680796 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25Fix to previous commit r679840.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@679843 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25Use a method compatible with Erlang R11B to put the Erlang OTP version in ↵Christopher Lenz
the HTTP Server response header. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@679840 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15fix for attachment editing when their are conflictsDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@677087 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10Make RESTful attachment API concurrency aware and the code a little more ↵Jan Lehnardt
concise (thanks Damien!) git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@675699 13f79535-47bb-0310-9956-ffa450edef68
2008-07-06Add RESTful API for document attachments as per ↵Jan Lehnardt
http://groups.google.com/group/couchdb/browse_thread/thread/c84c5f35afb5db2a with not yet comprehensive tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@674334 13f79535-47bb-0310-9956-ffa450edef68
2008-07-03Expose endkey_docid as a view query option through the HTTP API (including ↵Jan Lehnardt
tests). git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@673631 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24Change `Server` HTTP header to say CouchDB instead of MochiWeb, and add a ↵Christopher Lenz
`Cache-Control: must-revalidate` header to all JSON and attachment responses. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@671151 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23Apply patch by Chris Anderson that fixes an edge case in the HTTP view ↵Christopher Lenz
interface resulting in an invalid JSON response body. Closes COUCHDB-84. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@670774 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05Added reduce/combine example. Fixed broken node chunking with very large ↵Damien F. Katz
keys/reduction values git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663786 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05Remove /db/_search API call. This will be maintained in the lucene-search ↵Jan Lehnardt
branch and merged back after a 0.8 release when things got more stable. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663744 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04Use linebreaks between rows for view results with a negative count value, ↵Christopher Lenz
same as for a positive value. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663345 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04Enable the use of an unencoded slash in the URL of design documents. Closes ↵Christopher Lenz
COUCHDB-49. Thanks to Paul Davis for the patch. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@663055 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02Increase the request body size limitations on bulk_docs and document POST to ↵Christopher Lenz
4GB. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@662591 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29Grouped reduce support. Needs performance work.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@661476 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26Experimental functionality to increment database update seq, might go away, ↵Damien F. Katz
use at own risk. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660315 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26Add back /_restart URL that got lost in the transition to MochiWeb.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660183 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26* Respond to DELETE requests with a "200 OK" status code instead of "202 ↵Christopher Lenz
Accepted", as the deletion is performed immediately. * The "content-type" member in attachment structures is now named "content_type" (underscore) for consistency and to be more accessible from Javascript (and presumably other languages, too) git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660176 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26Improve the debug logging of request details. As the logging was split into ↵Christopher Lenz
multiple log messages, concurrent requests would get mixed up in the log. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660166 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26Change error handling on unknown private paths to be more consistent with ↵Christopher Lenz
how other errors are handled. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660139 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25Use limit of 4GB for document PUT requests, instead of the MochiWeb default ↵Christopher Lenz
of 1MB. Closes COUCHDB-37. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660050 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25Enable Etag processing for document GET requests that include the '?rev' ↵Christopher Lenz
query string parameter. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660046 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23improved private path error wordingNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@659690 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20Only use chunked encoding when we actually make use of it to iteratively ↵Christopher Lenz
write the response (for example for views). Otherwise just send a normal response with a Content-Length header. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@658408 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19Changed temp view definition to always be jsonobjects with map/reduce source ↵Damien F. Katz
as members of the object. Everywhere we used 'text/javascript' or 'application/javascript', we now just use 'javascript' git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657926 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18- remove leftover debugging lineJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657553 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18- more graceful handling of unknown private URIs including more user ↵Jan Lehnardt
friendly messages - add a proper comment to the descending=false handling git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657552 13f79535-47bb-0310-9956-ffa450edef68