@goa/negotiator
Version:
[fork] HTTP Content Negotiation In ES6 Optimised With Google Closure Compiler.
49 lines (48 loc) • 1.07 kB
JavaScript
/* typal types/index.xml externs */
/** @const */
var _goa = {}
/**
* HTTP Content Negotiation In ES6.
* @interface
*/
_goa.Negotiator
/**
* Negotiated charset.
* @type {function(!Array<string>=): string}
*/
_goa.Negotiator.prototype.charset
/**
* Negotiated charsets.
* @type {function(!Array<string>=): !Array<string>}
*/
_goa.Negotiator.prototype.charsets
/**
* Negotiated encoding.
* @type {function(!Array<string>=): string}
*/
_goa.Negotiator.prototype.encoding
/**
* Negotiated encodings.
* @type {function(!Array<string>=): !Array<string>}
*/
_goa.Negotiator.prototype.encodings
/**
* Negotiated language.
* @type {function(!Array<string>=): string}
*/
_goa.Negotiator.prototype.language
/**
* Negotiated languages.
* @type {function(!Array<string>=): !Array<string>}
*/
_goa.Negotiator.prototype.languages
/**
* Negotiated mediaType.
* @type {function(!Array<string>=): string}
*/
_goa.Negotiator.prototype.mediaType
/**
* Negotiated mediaTypes.
* @type {function(!Array<string>=): !Array<string>}
*/
_goa.Negotiator.prototype.mediaTypes