interface PluginOptions { contentTypeParser?: ContentTypeParser; helia: Helia; logger: ComponentLogger; getBlockstore(cid,
resource,
useSession?,
options?): Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>; handleServerTiming<T>(name,
description,
fn,
withServerTiming): Promise<T>; } Properties
Optional
contentTypeParser
Methods
getBlockstore
- getBlockstore(cid, resource, useSession?, options?): Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>
Returns Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>
handleServerTiming
- handleServerTiming<T>(name, description, fn, withServerTiming): Promise<T>
Parameters
- name: string
- description: string
- fn: (() => Promise<T>)
- withServerTiming: boolean
Contains common components and functions required by plugins to handle a request.