Genkit JS API reference
Preparing search index...
@genkit-ai/fetch
fetchHandler
Function fetchHandler
fetchHandler
<
C
extends
ActionContext
=
ActionContext
,
I
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
,
O
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
,
S
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
,
>
(
action
:
Action
<
I
,
O
,
S
>
,
options
?:
FetchHandlerOptions
<
C
,
I
>
,
)
:
(
request
:
Request
)
=>
Promise
<
Response
>
Type Parameters
C
extends
ActionContext
=
ActionContext
I
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
O
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
S
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
Parameters
action
:
Action
<
I
,
O
,
S
>
Optional
options
:
FetchHandlerOptions
<
C
,
I
>
Returns
(
request
:
Request
)
=>
Promise
<
Response
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...