anchor.diff:      {Data, fun() -> receive_request_data(Req, LenLeft - iolist_size(Data)) end};
   receive_request_data(_Req, _) ->
       throw(<<"expected more data">>).
  -    
  +
   make_content_range(From, To, Len) ->
       ?l2b(io_lib:format("bytes ~B-~B/~B", [From, To, Len])).
   
  
positive.code:                             _Else ->
                                  ok
                          end,
                          
                          
                          fun(Size) -> couch_httpd:recv(Req, Size) end
                      end,
                  att_len = case couch_httpd:header_value(Req,"Content-Length") of
  
negative.code:             send_json(Req, 200, Headers, couch_doc:to_json_obj(Doc, Options));
          true ->
              Boundary = couch_uuids:random(),
              JsonBytes = ?JSON_ENCODE(couch_doc:to_json_obj(Doc,
                      [attachments, follows, att_encoding_info | Options])),
              {ContentType, Len} = couch_doc:len_doc_to_multi_part_stream(
                      Boundary,JsonBytes, Atts, true),
  