Update build
This commit is contained in:
parent
b00cf9e4bd
commit
18548763b5
11
build/typertext.d.ts
vendored
11
build/typertext.d.ts
vendored
|
@ -28,7 +28,6 @@ declare module Typertext {
|
||||||
public GetHeaders(): Http.HttpHeaderData;
|
public GetHeaders(): Http.HttpHeaderData;
|
||||||
public GetHttpStatus(): number;
|
public GetHttpStatus(): number;
|
||||||
public GetStatus(): Http.HttpResponseStatus;
|
public GetStatus(): Http.HttpResponseStatus;
|
||||||
public SetContent(content: T): void;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
declare module Typertext {
|
declare module Typertext {
|
||||||
|
@ -97,11 +96,11 @@ declare module Typertext.Http {
|
||||||
}
|
}
|
||||||
declare module Typertext.Http {
|
declare module Typertext.Http {
|
||||||
class HttpUrl {
|
class HttpUrl {
|
||||||
private _Domain;
|
private domain;
|
||||||
private _Path;
|
private path;
|
||||||
private _Port;
|
private port;
|
||||||
private _Protocol;
|
private protocol;
|
||||||
private _QueryString;
|
private queryString;
|
||||||
static DefaultPort(protocol: HttpProtocol): number;
|
static DefaultPort(protocol: HttpProtocol): number;
|
||||||
static FromUrl(location: string): HttpUrl;
|
static FromUrl(location: string): HttpUrl;
|
||||||
static DecodeQueryString(queryString: string): HttpQueryString;
|
static DecodeQueryString(queryString: string): HttpQueryString;
|
||||||
|
|
|
@ -23,6 +23,7 @@ var Typertext;
|
||||||
})(Typertext || (Typertext = {}));
|
})(Typertext || (Typertext = {}));
|
||||||
var Typertext;
|
var Typertext;
|
||||||
(function (Typertext) {
|
(function (Typertext) {
|
||||||
|
|
||||||
})(Typertext || (Typertext = {}));
|
})(Typertext || (Typertext = {}));
|
||||||
var Typertext;
|
var Typertext;
|
||||||
(function (Typertext) {
|
(function (Typertext) {
|
||||||
|
@ -52,10 +53,6 @@ var Typertext;
|
||||||
GenericResponse.prototype.GetStatus = function () {
|
GenericResponse.prototype.GetStatus = function () {
|
||||||
return this.status;
|
return this.status;
|
||||||
};
|
};
|
||||||
|
|
||||||
GenericResponse.prototype.SetContent = function (content) {
|
|
||||||
this.content = content;
|
|
||||||
};
|
|
||||||
return GenericResponse;
|
return GenericResponse;
|
||||||
})();
|
})();
|
||||||
Typertext.GenericResponse = GenericResponse;
|
Typertext.GenericResponse = GenericResponse;
|
||||||
|
@ -214,11 +211,11 @@ var Typertext;
|
||||||
path = "/" + path;
|
path = "/" + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
this._Domain = domain;
|
this.domain = domain;
|
||||||
this._Protocol = protocol;
|
this.protocol = protocol;
|
||||||
this._Path = path;
|
this.path = path;
|
||||||
this._QueryString = queryString;
|
this.queryString = queryString;
|
||||||
this._Port = port;
|
this.port = port;
|
||||||
}
|
}
|
||||||
HttpUrl.DefaultPort = function (protocol) {
|
HttpUrl.DefaultPort = function (protocol) {
|
||||||
return ((protocol == 0 /* http */) ? 80 : 443);
|
return ((protocol == 0 /* http */) ? 80 : 443);
|
||||||
|
@ -282,7 +279,7 @@ var Typertext;
|
||||||
};
|
};
|
||||||
|
|
||||||
HttpUrl.prototype.ToString = function () {
|
HttpUrl.prototype.ToString = function () {
|
||||||
return Typertext.Http.HttpProtocol[this._Protocol] + "://" + this._Domain + ((this._Port == HttpUrl.DefaultPort(this._Protocol)) ? "" : ":" + this._Port) + this._Path + HttpUrl.EncodeQueryString(this._QueryString);
|
return Typertext.Http.HttpProtocol[this.protocol] + "://" + this.domain + ((this.port == HttpUrl.DefaultPort(this.protocol)) ? "" : ":" + this.port) + this.path + HttpUrl.EncodeQueryString(this.queryString);
|
||||||
};
|
};
|
||||||
return HttpUrl;
|
return HttpUrl;
|
||||||
})();
|
})();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Reference in a new issue