[]previous and next page

MetadataResponseOptions

Options of the response helpers.

Options of the response helpers.

Import#

ts
import type { MetadataResponseOptions } from "@shadow-js/dusk/server";

Signature#

ts
interface MetadataResponseOptions {
  /** `Cache-Control` of the answer. Default `public, max-age=3600, stale-while-revalidate=86400`. */
  readonly cacheControl?: string;
  /**
   * `Content-Type` of the answer, replacing the helper's own (`text/plain; charset=utf-8` and so on). Next writes some
   * of these without a charset (`text/plain`, `application/xml`); set this to match them exactly.
   */
  readonly contentType?: string;
}

Members#

Name Type Description
cacheControl? readonly cacheControl?: string Cache-Control of the answer. Default public, max-age=3600, stale-while-revalidate=86400.
contentType? readonly contentType?: string Content-Type of the answer, replacing the helper's own (text/plain; charset=utf-8 and so on). Next writes some of these without a charset (text/plain, application/xml); set this to match them exactly.