Module couchbeam_attachments

This module contains utilities to manage attachments.

Description

This module contains utilities to manage attachments

Function Index

add_inline/3add attachment to a doc and encode it.
add_inline/4add attachment to a doc and encode it with ContentType fixed.
attachment_acceptor/3initiate attachment fetching.
delete_inline/2delete an attachment record in doc.
wait_for_attachment/2collect all attachments chunks.

Function Details

add_inline/3

add_inline(Doc::json_obj(), Content::attachment_content(), AName::string()) -> json_obj()

add attachment to a doc and encode it. Give possibility to send attachments inline.

add_inline/4

add_inline(Doc::json_obj(), Content::attachment_content(), AName::string(), ContentType::string()) -> json_obj()

add attachment to a doc and encode it with ContentType fixed.

attachment_acceptor/3

attachment_acceptor(Pid, PidRef, Timeout) -> any()

initiate attachment fetching

delete_inline/2

delete_inline(Doc::json_obj(), AName::string()) -> json_obj()

delete an attachment record in doc. This is different from delete_attachment change is only applied in Doc object. Save_doc should be save to save changes.

wait_for_attachment/2

wait_for_attachment(ReqId, Timeout) -> any()

collect all attachments chunks


Generated by EDoc, Aug 31 2012, 10:02:31.