Helia Verified Fetch
Preparing search index...
@helia/verified-fetch
index
PluginOptions
Interface PluginOptions
Contains common components and functions required by plugins to handle a request.
Read-Only: Plugins can read but shouldn't rewrite them.
Persistent: Relevant even after the request completes (e.g., logging or metrics).
interface
PluginOptions
{
contentTypeParser
?:
ContentTypeParser
;
helia
:
Helia
;
logger
:
ComponentLogger
;
getBlockstore
(
cid
:
CID
,
resource
:
string
|
CID
<
unknown
,
number
,
number
,
Version
>
,
useSession
?:
boolean
,
options
?:
AbortOptions
,
)
:
Blockstore
;
handleServerTiming
<
T
>
(
name
:
string
,
description
:
string
,
fn
:
()
=>
Promise
<
T
>
,
withServerTiming
:
boolean
,
)
:
Promise
<
T
>
;
}
Index
Properties
content
Type
Parser?
helia
logger
Methods
get
Blockstore
handle
Server
Timing
Properties
Optional
content
Type
Parser
contentTypeParser
?:
ContentTypeParser
helia
helia
:
Helia
logger
logger
:
ComponentLogger
Methods
get
Blockstore
getBlockstore
(
cid
:
CID
,
resource
:
string
|
CID
<
unknown
,
number
,
number
,
Version
>
,
useSession
?:
boolean
,
options
?:
AbortOptions
,
)
:
Blockstore
Parameters
cid
:
CID
resource
:
string
|
CID
<
unknown
,
number
,
number
,
Version
>
Optional
useSession
:
boolean
Optional
options
:
AbortOptions
Returns
Blockstore
handle
Server
Timing
handleServerTiming
<
T
>
(
name
:
string
,
description
:
string
,
fn
:
()
=>
Promise
<
T
>
,
withServerTiming
:
boolean
,
)
:
Promise
<
T
>
Type Parameters
T
Parameters
name
:
string
description
:
string
fn
:
()
=>
Promise
<
T
>
withServerTiming
:
boolean
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
content
Type
Parser
helia
logger
Methods
get
Blockstore
handle
Server
Timing
Helia Verified Fetch
Loading...
Contains common components and functions required by plugins to handle a request.