Skip to main content

Class: VrameworkSSRNextResponse

The VrameworkSSRNextResponse class is an extension of the VrameworkResponse class, specifically for handling server-side rendering (SSR) responses in a Next.js environment.

Extends

  • VrameworkResponse

Constructors

new VrameworkSSRNextResponse()

new VrameworkSSRNextResponse(response): VrameworkSSRNextResponse

Constructs a new instance of the VrameworkSSRNextResponse class.

Parameters

response: ServerResponse<IncomingMessage>

The HTTP response object to be wrapped.

Returns

VrameworkSSRNextResponse

Overrides

VrameworkResponse.constructor

Defined in

packages/servers/next/src/vramework-ssr-next-response.ts:14

Properties

response

protected response: ServerResponse<IncomingMessage>;

The HTTP response object to be wrapped.

Defined in

packages/servers/next/src/vramework-ssr-next-response.ts:14

Methods

setJson()

setJson(): void

Sets the JSON body of the response.

Returns

void

Remarks

This method is currently a placeholder and should be implemented as needed.

Overrides

VrameworkResponse.setJson

Defined in

packages/servers/next/src/vramework-ssr-next-response.ts:32


setResponse()

setResponse(): void

Sets the final response to be sent to the client.

Returns

void

Remarks

This method is currently a placeholder and should be implemented as needed.

Overrides

VrameworkResponse.setResponse

Defined in

packages/servers/next/src/vramework-ssr-next-response.ts:40


setStatus()

setStatus(): void

Sets the status of the response.

Returns

void

Remarks

This method is currently a placeholder and should be implemented as needed.

Overrides

VrameworkResponse.setStatus

Defined in

packages/servers/next/src/vramework-ssr-next-response.ts:24