Skip to main content
Module

x/oak/mediaTyper.ts>format

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function format
import { format } from "https://deno.land/x/oak@v12.5.0/mediaTyper.ts";

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

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

Parameters

obj: MediaType

Returns

string