Genkit JS API reference
    Preparing search index...

    This class extends the Web Request API with additional convenience methods.

    Read more: Next.js Docs: NextRequest

    Hierarchy

    • Request
      • NextRequest
    Index

    Constructors

    • Parameters

      • input: URL | RequestInfo
      • Optionalinit: RequestInit

      Returns NextRequest

    Properties

    body: ReadableStream<Uint8Array<ArrayBuffer>> | null
    bodyUsed: boolean
    cache: RequestCache

    The cache read-only property of the Request interface contains the cache mode of the request.

    MDN Reference

    credentials: RequestCredentials

    The credentials read-only property of the Request interface reflects the value given to the Request.Request() constructor in the credentials option.

    MDN Reference

    destination: RequestDestination

    The destination read-only property of the Request interface returns a string describing the type of content being requested.

    MDN Reference

    headers: Headers

    The headers read-only property of the with the request.

    MDN Reference

    integrity: string

    The integrity read-only property of the Request interface contains the subresource integrity value of the request.

    MDN Reference

    keepalive: boolean

    The keepalive read-only property of the Request interface contains the request's keepalive setting (true or false), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.

    MDN Reference

    method: string

    The method read-only property of the POST, etc.) A String indicating the method of the request.

    MDN Reference

    mode: RequestMode

    The mode read-only property of the Request interface contains the mode of the request (e.g., cors, no-cors, same-origin, or navigate.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.

    MDN Reference

    redirect: RequestRedirect

    The redirect read-only property of the Request interface contains the mode for how redirects are handled.

    MDN Reference

    referrer: string

    The referrer read-only property of the Request.

    MDN Reference

    referrerPolicy: ReferrerPolicy

    The referrerPolicy read-only property of the referrer information, sent in the Referer header, should be included with the request.

    MDN Reference

    signal: AbortSignal

    The read-only signal property of the Request interface returns the AbortSignal associated with the request.

    MDN Reference

    Accessors

    • get cookies(): RequestCookies

      Returns RequestCookies

    • get nextUrl(): NextURL

      Returns NextURL

    • get page(): void

      Returns void

      page has been deprecated in favour of URLPattern. Read more: https://nextjs.org/docs/messages/middleware-request-page

    • get ua(): void

      Returns void

      ua has been removed in favour of userAgent function. Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent

    • get url(): string

      The url read-only property of the Request interface contains the URL of the request.

      MDN Reference

      Returns string

    Methods

    • Returns Promise<ArrayBuffer>

    • Returns Promise<Blob>

    • Returns Promise<Uint8Array<ArrayBuffer>>

    • The clone() method of the Request interface creates a copy of the current Request object.

      MDN Reference

      Returns Request

    • Returns Promise<FormData>

    • Returns Promise<any>

    • Returns Promise<string>