GitHub

DaffSsrResponse

The document response for a server-side render.

import { DaffSsrResponse } from '@daffodil/ssr'
interface DaffSsrResponse {
  get: Array<string> | string
  set: void
  append: void
  status: void
}

Properties

Name Type Description
get Array<string> | string

Get the value of a header by name.

set void

Set a header to a particular value. Removes all existing headers of this name.

append void

Append a header to the response, preserving the existing headers.

status void

Set the status code of the response.