Class: VrameworkActionNextRequest
The VrameworkActionNextRequest
class is an extension of the VrameworkRequest
class,
specifically designed for handling action requests in a Next.js environment.
Extends
VrameworkRequest
Constructors
new VrameworkActionNextRequest()
new VrameworkActionNextRequest(body): VrameworkActionNextRequest
Constructs a new instance of the VrameworkActionNextRequest
class.
Parameters
• body: any
The request body to be wrapped and converted to a plain object.
Returns
Overrides
VrameworkRequest.constructor
Defined in
packages/servers/next/src/vramework-action-next-request.ts:16
Methods
getBody()
getBody(): any
Retrieves the body of the request.
Returns
any
The body of the request.
Overrides
VrameworkRequest.getBody
Defined in
packages/servers/next/src/vramework-action-next-request.ts:53
getCookies()
getCookies(): Record<string, string>
Retrieves the cookies from the request.
Returns
Record
<string
, string
>
An object containing the cookies.
Overrides
VrameworkRequest.getCookies
Defined in
packages/servers/next/src/vramework-action-next-request.ts:27
getHeader()
getHeader(headerName): undefined | string
Retrieves the value of a specific header from the request.
Parameters
• headerName: string
The name of the header to retrieve.
Returns
undefined
| string
The value of the specified header, or undefined
if not found.
Overrides
VrameworkRequest.getHeader
Defined in
packages/servers/next/src/vramework-action-next-request.ts:44