Std.Mime
8 public declarations
- format
&Std.Mime.MediaType -> StrSerializes a MediaType to its canonical wire format.
- fromExtension
Str -> StrMaps a file extension to its canonical MIME media type.
- matches
Str -> Str -> BoolTests if a target media type satisfies a pattern (e.g. */* or type/*).
- MediaType
Structured representation of a MIME Media Type.
- negotiate
Str -> Array[Str] -> Option[Str]Negotiates the best matching media type from available candidates using an RFC 7231 Accept header.
- parameter
&Std.Mime.MediaType -> Str -> Option[Str]Extracts a named parameter value from a MediaType.
- parse
Str -> Option[Std.Mime.MediaType]Parses a MIME media type string into a structured MediaType.
- toExtension
Str -> Option[Str]Maps a canonical MIME media type to its primary file extension.
