diff options
author | Damien F. Katz <damien@apache.org> | 2009-01-15 23:12:56 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2009-01-15 23:12:56 +0000 |
commit | 1c13d302c9bfa4e6532fab6fd9c210acd64b962f (patch) | |
tree | 1682cbb16823542101fd0d36184e3a863677223b /src/couchdb/couch_httpd.erl | |
parent | 369dfbc2babdc2db0e5a07736b763bc06c5b9914 (diff) |
Support for streaming attachment writes.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734849 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r-- | src/couchdb/couch_httpd.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index 38c34e17..93062d69 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -16,7 +16,7 @@ -export([start_link/0, stop/0, handle_request/3]). -export([header_value/2,header_value/3,qs_value/2,qs_value/3,qs/1,path/1]). --export([verify_is_server_admin/1,unquote/1]). +-export([verify_is_server_admin/1,unquote/1,recv/2]). -export([parse_form/1,json_body/1,body/1,doc_etag/1]). -export([primary_header_value/2,partition/1,serve_file/3]). -export([start_chunked_response/3,send_chunk/2]). @@ -244,6 +244,9 @@ unquote(UrlEncodedString) -> parse_form(#httpd{mochi_req=MochiReq}) -> mochiweb_multipart:parse_form(MochiReq). +recv(#httpd{mochi_req=MochiReq}, Len) -> + MochiReq:recv(Len). + body(#httpd{mochi_req=MochiReq}) -> MochiReq:recv_body(?MAX_DOC_SIZE). |