Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/media_types/parse_media_type.ts

The Deno Standard Library
Latest
import * as mod from "https://deno.land/std@0.224.0/media_types/parse_media_type.ts";

Functions

Parses the media type and any optional parameters, per RFC 1521. Media types are the values in Content-Type and Content-Disposition headers. On success the function returns a tuple where the first element is the media type and the second element is the optional parameters or undefined if there are none.