facet classafPillow::PageContentType

sys::Obj
  afPillow::PageContentType : sys::Facet

@FacetMeta { inherited=true }
@Serializable

Place on a Page mixin to define the explicit Content-Type it should be serverd with. This sets the Content-Type in the HTTP response header.

using afPillow

@PageContentType { contentType=MimeType("text/plain") }
const mixin Matrix : Page { ... }
contentType

Source

const MimeType contentType