static func from(fileExtension : String) -> MIMEType from(fileDetermines the MIME type from a file extension.
MIME type mapping for static file serving.
enum MIMETypeThis enumeration provides MIME type mappings for common file types served in static documentation. Each case includes appropriate charset declarations where applicable.
The MIME type determines how browsers and HTTP clients interpret file content. This enumeration covers text formats, images, fonts, and multimedia commonly found in documentation sites.
static func from(fileExtension : String) -> MIMEType from(filecase html MIMETypecase css MIMETypecase javascript MIMETypecase plain MIMETypecase xml MIMETypecase json MIMETypecase pdf MIMETypecase zip MIMETypecase octetStream MIMETypecase png MIMETypecase jpeg MIMETypecase gif MIMETypecase svg MIMETypecase webp MIMETypecase ico MIMETypecase woff MIMETypecase woff2 MIMETypecase ttf MIMETypecase otf MIMETypecase mp4 MIMETypecase webm MIMETypecase mp3 MIMETypecase wav MIMETypeSwift.Equatable Swift.Hashable Swift.RawRepresentable Swift.Sendable Swift.SendableMetatype