jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
18 lines (17 loc) • 630 B
TypeScript
export declare class MultiPartParser {
#private;
constructor(rawContent: ArrayBuffer | Uint8Array);
get isAttachment(): boolean;
get contentType(): string | null;
getContentId(): string | null;
getContentType(): {
mediaType: string | null;
subType: string | null;
args: string | null;
};
getBody(): any;
getPartByContentType(mediaType: string, subType?: string | null): MultiPartParser | null;
getHeader(key: string, decode?: boolean, removeLineBreaks?: boolean): string | string[] | null;
getMultiParts(): MultiPartParser[];
getFilename(): string | null;
}