# Source: https://nextjs.org/docs/pages/api-reference/functions.md

# Source: https://nextjs.org/docs/app/api-reference/functions.md

# Source: https://nextjs.org/docs/pages/api-reference/functions.md

# Source: https://nextjs.org/docs/app/api-reference/functions.md

# Source: https://nextjs.org/docs/pages/api-reference/functions.md

# Source: https://nextjs.org/docs/app/api-reference/functions.md

# Source: https://nextjs.org/docs/pages/api-reference/functions.md

# Source: https://nextjs.org/docs/app/api-reference/functions.md

# Source: https://nextjs.org/docs/pages/api-reference/functions.md

# Source: https://nextjs.org/docs/app/api-reference/functions.md

# Functions
@doc-version: 16.0.4



- [after](/docs/app/api-reference/functions/after.md)
  - API Reference for the after function.
- [cacheLife](/docs/app/api-reference/functions/cacheLife.md)
  - Learn how to use the cacheLife function to set the cache expiration time for a cached function or component.
- [cacheTag](/docs/app/api-reference/functions/cacheTag.md)
  - Learn how to use the cacheTag function to manage cache invalidation in your Next.js application.
- [connection](/docs/app/api-reference/functions/connection.md)
  - API Reference for the connection function.
- [cookies](/docs/app/api-reference/functions/cookies.md)
  - API Reference for the cookies function.
- [draftMode](/docs/app/api-reference/functions/draft-mode.md)
  - API Reference for the draftMode function.
- [fetch](/docs/app/api-reference/functions/fetch.md)
  - API reference for the extended fetch function.
- [forbidden](/docs/app/api-reference/functions/forbidden.md)
  - API Reference for the forbidden function.
- [generateImageMetadata](/docs/app/api-reference/functions/generate-image-metadata.md)
  - Learn how to generate multiple images in a single Metadata API special file.
- [generateMetadata](/docs/app/api-reference/functions/generate-metadata.md)
  - Learn how to add Metadata to your Next.js application for improved search engine optimization (SEO) and web shareability.
- [generateSitemaps](/docs/app/api-reference/functions/generate-sitemaps.md)
  - Learn how to use the generateSiteMaps function to create multiple sitemaps for your application.
- [generateStaticParams](/docs/app/api-reference/functions/generate-static-params.md)
  - API reference for the generateStaticParams function.
- [generateViewport](/docs/app/api-reference/functions/generate-viewport.md)
  - API Reference for the generateViewport function.
- [headers](/docs/app/api-reference/functions/headers.md)
  - API reference for the headers function.
- [ImageResponse](/docs/app/api-reference/functions/image-response.md)
  - API Reference for the ImageResponse constructor.
- [NextRequest](/docs/app/api-reference/functions/next-request.md)
  - API Reference for NextRequest.
- [NextResponse](/docs/app/api-reference/functions/next-response.md)
  - API Reference for NextResponse.
- [notFound](/docs/app/api-reference/functions/not-found.md)
  - API Reference for the notFound function.
- [permanentRedirect](/docs/app/api-reference/functions/permanentRedirect.md)
  - API Reference for the permanentRedirect function.
- [redirect](/docs/app/api-reference/functions/redirect.md)
  - API Reference for the redirect function.
- [refresh](/docs/app/api-reference/functions/refresh.md)
  - API Reference for the refresh function.
- [revalidatePath](/docs/app/api-reference/functions/revalidatePath.md)
  - API Reference for the revalidatePath function.
- [revalidateTag](/docs/app/api-reference/functions/revalidateTag.md)
  - API Reference for the revalidateTag function.
- [unauthorized](/docs/app/api-reference/functions/unauthorized.md)
  - API Reference for the unauthorized function.
- [unstable_cache](/docs/app/api-reference/functions/unstable_cache.md)
  - API Reference for the unstable_cache function.
- [unstable_noStore](/docs/app/api-reference/functions/unstable_noStore.md)
  - API Reference for the unstable_noStore function.
- [unstable_rethrow](/docs/app/api-reference/functions/unstable_rethrow.md)
  - API Reference for the unstable_rethrow function.
- [updateTag](/docs/app/api-reference/functions/updateTag.md)
  - API Reference for the updateTag function.
- [useLinkStatus](/docs/app/api-reference/functions/use-link-status.md)
  - API Reference for the useLinkStatus hook.
- [useParams](/docs/app/api-reference/functions/use-params.md)
  - API Reference for the useParams hook.
- [usePathname](/docs/app/api-reference/functions/use-pathname.md)
  - API Reference for the usePathname hook.
- [useReportWebVitals](/docs/app/api-reference/functions/use-report-web-vitals.md)
  - API Reference for the useReportWebVitals function.
- [useRouter](/docs/app/api-reference/functions/use-router.md)
  - API reference for the useRouter hook.
- [useSearchParams](/docs/app/api-reference/functions/use-search-params.md)
  - API Reference for the useSearchParams hook.
- [useSelectedLayoutSegment](/docs/app/api-reference/functions/use-selected-layout-segment.md)
  - API Reference for the useSelectedLayoutSegment hook.
- [useSelectedLayoutSegments](/docs/app/api-reference/functions/use-selected-layout-segments.md)
  - API Reference for the useSelectedLayoutSegments hook.
- [userAgent](/docs/app/api-reference/functions/userAgent.md)
  - The userAgent helper extends the Web Request API with additional properties and methods to interact with the user agent object from the request.