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 GetHttpStatus(): number;
|
||||
public GetStatus(): Http.HttpResponseStatus;
|
||||
public SetContent(content: T): void;
|
||||
}
|
||||
}
|
||||
declare module Typertext {
|
||||
|
@ -97,11 +96,11 @@ declare module Typertext.Http {
|
|||
}
|
||||
declare module Typertext.Http {
|
||||
class HttpUrl {
|
||||
private _Domain;
|
||||
private _Path;
|
||||
private _Port;
|
||||
private _Protocol;
|
||||
private _QueryString;
|
||||
private domain;
|
||||
private path;
|
||||
private port;
|
||||
private protocol;
|
||||
private queryString;
|
||||
static DefaultPort(protocol: HttpProtocol): number;
|
||||
static FromUrl(location: string): HttpUrl;
|
||||
static DecodeQueryString(queryString: string): HttpQueryString;
|
||||
|
|
|
@ -23,6 +23,7 @@ var Typertext;
|
|||
})(Typertext || (Typertext = {}));
|
||||
var Typertext;
|
||||
(function (Typertext) {
|
||||
|
||||
})(Typertext || (Typertext = {}));
|
||||
var Typertext;
|
||||
(function (Typertext) {
|
||||
|
@ -52,10 +53,6 @@ var Typertext;
|
|||
GenericResponse.prototype.GetStatus = function () {
|
||||
return this.status;
|
||||
};
|
||||
|
||||
GenericResponse.prototype.SetContent = function (content) {
|
||||
this.content = content;
|
||||
};
|
||||
return GenericResponse;
|
||||
})();
|
||||
Typertext.GenericResponse = GenericResponse;
|
||||
|
@ -214,11 +211,11 @@ var Typertext;
|
|||
path = "/" + path;
|
||||
}
|
||||
|
||||
this._Domain = domain;
|
||||
this._Protocol = protocol;
|
||||
this._Path = path;
|
||||
this._QueryString = queryString;
|
||||
this._Port = port;
|
||||
this.domain = domain;
|
||||
this.protocol = protocol;
|
||||
this.path = path;
|
||||
this.queryString = queryString;
|
||||
this.port = port;
|
||||
}
|
||||
HttpUrl.DefaultPort = function (protocol) {
|
||||
return ((protocol == 0 /* http */) ? 80 : 443);
|
||||
|
@ -282,7 +279,7 @@ var Typertext;
|
|||
};
|
||||
|
||||
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;
|
||||
})();
|
||||
|
|
File diff suppressed because one or more lines are too long
Reference in a new issue