GitHub

DaffSsrExpressResponse

Helper

import { DaffSsrExpressResponse } from '@daffodil/ssr/express'

A response that interfaces with the express request.

class DaffSsrExpressResponse implements DaffSsrResponse {
  get(header: string): string | string[]
  set(
    name: string
    value: string | string[]
  ): void
  append(
    name: string
    value: string | string[]
  ): void
  status(code: number): void
}