UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

13 lines 697 B
import type { ParsedUrlStringResults } from './parse-url-string.js'; export interface IsAcceptExplicitOptions { query?: ParsedUrlStringResults['query']; headers: Headers; } export declare function isExplicitAcceptHeader(headers: Headers): boolean; export declare function isExplicitFormatQuery(query?: ParsedUrlStringResults['query']): boolean; /** * The user can provide an explicit `accept` header in the request headers or a `format` query parameter in the URL. * If either of these are provided, this function returns true. */ export declare function isExplicitIpldAcceptRequest({ query, headers }: IsAcceptExplicitOptions): boolean; //# sourceMappingURL=is-accept-explicit.d.ts.map