Optional init: RequestInitOptional ip?: stringReadonly arrayReadonly blobReadonly bodyReadonly bodyReadonly cacheReadonly cloneReadonly credentialsReadonly destinationReadonly duplexReadonly formThis method is not recommended for parsing multipart/form-data bodies in server environments. It is recommended to use a library such as @fastify/busboy as follows:
import { Busboy } from '@fastify/busboy'
import { Readable } from 'node:stream'
const response = await fetch('...')
const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
// handle events emitted from `busboy`
Readable.fromWeb(response.body).pipe(busboy)
This method is not recommended for parsing multipart/form-data bodies in server environments. It is recommended to use a library such as @fastify/busboy as follows:
import { Busboy } from '@fastify/busboy'
import { Readable } from 'node:stream'
const response = await fetch('...')
const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
// handle events emitted from `busboy`
Readable.fromWeb(response.body).pipe(busboy)
Readonly headersReadonly integrityReadonly jsonReadonly keepaliveReadonly methodReadonly modeReadonly redirectReadonly referrerReadonly referrerReadonly signalReadonly textpage has been deprecated in favour of URLPattern.
Read more: https://nextjs.org/docs/messages/middleware-request-page
ua has been removed in favour of userAgent function.
Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
This class extends the Web
RequestAPI with additional convenience methods.Read more: Next.js Docs:
NextRequest