Interface RepresentationPreferences

Contains preferences along multiple content negotiation dimensions.

All dimensions are optional for ease of constructing; either undefined or an empty ValuePreferences can indicate that no preferences were specified.

interface RepresentationPreferences {
    charset?: ValuePreferences;
    datetime?: ValuePreferences;
    encoding?: ValuePreferences;
    language?: ValuePreferences;
    range?: {
        parts: {
            end?: number;
            start: number;
        }[];
        unit: string;
    };
    type?: ValuePreferences;
}

Properties

datetime?: ValuePreferences
encoding?: ValuePreferences
language?: ValuePreferences
range?: {
    parts: {
        end?: number;
        start: number;
    }[];
    unit: string;
}