x/oak/mediaTyper.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function format
import { format } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mediaTyper.ts?s=format";

Given a media type object, return a media type string.

  format({
    type: "text",
    subtype: "html"
  }); // returns "text/html"

Parameters

obj: MediaType[src]