( fileUrl: string, filename: string, mimeType?: string, userId?: string )
| 839 | } |
| 840 | |
| 841 | async function parseHttpFile( |
| 842 | fileUrl: string, |
| 843 | filename: string, |
| 844 | mimeType?: string, |
| 845 | userId?: string |
| 846 | ): Promise<{ content: string; metadata?: FileParseMetadata }> { |
| 847 | const buffer = await downloadFileWithTimeout(fileUrl, userId) |
| 848 | |
| 849 | const extension = resolveParserExtension(filename, mimeType) |
| 850 | const result = await parseBuffer(buffer, extension) |
| 851 | return result |
| 852 | } |
no test coverage detected