function formatMultipart(oMultipart, mODataHeaders) {
				var aResponseParts = [""];

				oMultipart.parts.every(function (oPart) {
					aResponseParts.push(oPart.boundary
						? "\r\nContent-Type: multipart/mixed;boundary=" + oPart.boundary
							+ "\r\n\r\n" + formatMultipart(oPart, mODataHeaders)
						: formatResponse(oPart, mODataHeaders));
					// change set, success response or V2 request (continue on error by default)
					return !oPart.code || oPart.code < 400
						|| mODataHeaders.DataServiceVersion === "2.0";
				});
				aResponseParts.push("--\r\n");
				return aResponseParts.join("--" + oMultipart.boundary);
			}
/*
			 * Formats a multipart object into the message body.
			 *
			 * @param {object} oMultipart The multipart object with boundary and parts
			 * @param {map} mODataHeaders The OData headers to copy into the response parts
			 */
Formats a multipart object into the message body.
@param {object} oMultipart The multipart object with boundary and parts
@param {map} mODataHeaders The OData headers to copy into the response parts
Formats a multipart object into the message body . @param { object } oMultipart The multipart object with boundary and parts @param { map } mODataHeaders The OData headers to copy into the response parts
function formatMultipart(oMultipart, mODataHeaders) {
				var aResponseParts = [""];
				oMultipart.parts.every(function (oPart) {
					aResponseParts.push(oPart.boundary
						? "\r\nContent-Type: multipart/mixed;boundary=" + oPart.boundary
							+ "\r\n\r\n" + formatMultipart(oPart, mODataHeaders)
						: formatResponse(oPart, mODataHeaders));
					return !oPart.code || oPart.code < 400
						|| mODataHeaders.DataServiceVersion === "2.0";
				});
				aResponseParts.push("--\r\n");
				return aResponseParts.join("--" + oMultipart.boundary);
			}
function formatMultipart ( oMultipart , mODataHeaders ) { var aResponseParts = [ "" ] ; oMultipart . parts . every ( function ( oPart ) { aResponseParts . push ( oPart . boundary ? "\r\nContent-Type: multipart/mixed;boundary=" + oPart . boundary + "\r\n\r\n" + formatMultipart ( oPart , mODataHeaders ) : formatResponse ( oPart , mODataHeaders ) ) ; return ! oPart . code || oPart . code < 400 || mODataHeaders . DataServiceVersion === "2.0" ; } ) ; aResponseParts . push ( "--\r\n" ) ; return aResponseParts . join ( "--" + oMultipart . boundary ) ; }
Formats a multipart object into the message body.
Formats a multipart object into the message body .
// change set, success response or V2 request (continue on error by default)