Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ContentTypeInfo

import type { ContentTypeInfo } from "https://googleapis.deno.dev/v1/walletobjects:v1.ts";

Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.

interface ContentTypeInfo {
bestGuess?: string;
fromBytes?: string;
fromFileName?: string;
fromHeader?: string;
fromUrlPath?: string;
}

§Properties

§
bestGuess?: string
[src]

Scotty's best guess of what the content type of the file is.

§
fromBytes?: string
[src]

The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file.

§
fromFileName?: string
[src]

The content type of the file derived from the file extension of the original file name used by the client.

§
fromHeader?: string
[src]

The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.

§
fromUrlPath?: string
[src]

The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).