FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/dev / ContentType

Variable: ContentType

const ContentType: object

Common content type aliases used by the HTTP plugin.

Built-in keys include plain, html, xml, csv, css, javascript, json, and jsonp. HttpSetContentType also accepts raw MIME strings.

Index Signature

[key: string]: string

Example

const contentType = ContentType.json