UNPKG

@scalar/api-client

Version:

the open source API testing client

17 lines 471 B
import MimeType from 'whatwg-mimetype'; /** * Processes the response body of an HTTP request. * Extracts MIME type, attachment filename, and generates a data URL. */ export declare function processResponseBody({ data, headers }: { data: unknown; headers: { name: string; value: string; }[]; }): { mimeType: MimeType | undefined; attachmentFilename: string; dataUrl: string; }; //# sourceMappingURL=process-response-body.d.ts.map