uritemplate
Version:
An UriTemplate implementation of rfc 6570
17 lines (13 loc) • 471 B
JavaScript
/*jshint unused:false */
/*global pctEncoder, rfcCharHelper, encodingHelper*/
var LiteralExpression = (function () {
"use strict";
function LiteralExpression (literal) {
this.literal = encodingHelper.encodeLiteral(literal);
}
LiteralExpression.prototype.expand = function () {
return this.literal;
};
LiteralExpression.prototype.toString = LiteralExpression.prototype.expand;
return LiteralExpression;
}());