helia
    Preparing search index...

    Interface HTTPOptions

    interface HTTPOptions {
        allowInsecure?: boolean;
        allowLocal?: boolean;
        delegatedRouters?: string[];
        recursiveGateways?: string[];
        transformRequestInit?: TransformRequestInit;
    }

    Hierarchy (View Summary)

    Index

    Properties

    allowInsecure?: boolean

    By default we will only connect to peers with HTTPS addresses, pass true to also connect to HTTP addresses.

    false
    
    allowLocal?: boolean

    By default we will only connect to peers with public or DNS addresses, pass true to also connect to private addresses.

    false
    
    delegatedRouters?: string[]

    Delegated routers are servers that make routing requests on behalf of peers with less capable network connectivity.

    ['https://delegated-ipfs.dev']
    
    recursiveGateways?: string[]

    A recursive gateway is one that will fetch content on behalf of peers with less capable network connectivity. For example it may fetch content from a node that supports transport(s) which the requesting peer does not.

    These are used as fallback routers which will always claim to be providers of a given block.

    transformRequestInit?: TransformRequestInit

    Provide a function that will be called before querying trustless-gateways. This lets you modify the fetch options to pass custom headers or other necessary things.