GitHub

DaffSsrExpressResponse

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

A response that interfaces with the express request.

class DaffSsrExpressResponse implements DaffSsrResponse {
  protected response: Response<any, Record<string, any>>

  get(header: string): Array<string> | string
  set(
    name: string
    value: string | string[]
  ): void
  append(
    name: string
    value: string | string[]
  ): void
  status(code: number): void
}