mormot取multipart分界符
作者:互联网
mormot取multipart分界符
function getBoundary(const inContentType: RawUTF8): RawUTF8; //multipart 分界符 var boundary: RawUTF8; i,j: integer; P: PUTF8Char; part: TMultiPart; begin Result := ''; i := PosEx('boundary=',inContentType); if i=0 then exit; TrimCopy(inContentType,i+9,200,boundary); if (boundary<>'') and (boundary[1]='"') then boundary := copy(boundary,2,length(boundary)-2); // "boundary" -> boundary Result := boundary; end;
标签:RawUTF8,mormot,multipart,boundary,分界,inContentType 来源: https://www.cnblogs.com/hnxxcxg/p/14296397.html