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

x/windmill/windmill-api/models/ObjectSerializer.ts>ObjectSerializer.getPreferredMediaType

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
method ObjectSerializer.getPreferredMediaType
import { ObjectSerializer } from "https://deno.land/x/windmill@v1.28.1/windmill-api/models/ObjectSerializer.ts";

From a list of possible media types, choose the one we can handle best.

The order of the given media types does not have any impact on the choice made.

Parameters

mediaTypes: Array<string>

Returns

string