Field note
What it does
More flexibility and credits now available for Pro plans đ Build / Functions / Functions API reference For the complete documentation index, see llms.txt Copy page View as Markdown Copy as Markdown View as Markdown This page provides a full reference of the Netlify Serverless Functions API. Function signature Section titled âFunction signatureâ A function file exports a default handler that runs in response to an event. The signature depends on the type of event the function responds to. Web requests Section titled âWeb requestsâ A function that responds to web requests receives a Request representing the incoming request and a Context object with Netlify-specific metadata. The handler returns a Response . Two equivalent forms are supported: Bare function syntax Fetchable module import type { Context } from " @netlify/functions " export default async ( req : Request , context : Context ) => { return new Response ( " Hello, world! " ) } { return new Response("Hello, world!")}"> import type { NetlifyFunction } from " @netlify/functions " export default { fetch : ( req , context ) => { return new Response ( " Hello, world! " ) }, } satisfies NetlifyFunction { return new Response("Hello, world!") },} satisfies NetlifyFunction"> The second form is a Fetchable module , a common shape for fetch-style handlers across JavaScript frameworks and runtimes.
Capabilities
Available capabilities
Tags
Tags
No tags filed yet.
Ways to use it
Ways to use it
No integrations filed yet.