(headers: Headers)
| 30 | } |
| 31 | |
| 32 | const headersToRecord = (headers: Headers): Record<string, string> => { |
| 33 | const record: Record<string, string> = {} |
| 34 | headers.forEach((value, key) => { |
| 35 | record[key] = value |
| 36 | }) |
| 37 | return record |
| 38 | } |
| 39 | |
| 40 | export async function searchWeb(options: { |
| 41 | query: string |