Comparing version 0.0.1-53 to 0.0.1-54
@@ -159,3 +159,3 @@ /// <reference types="node" /> | ||
getParam(key: string): string; | ||
isAccept(mime: string): boolean; | ||
getAccepts(key: string | string[]): string | boolean; | ||
isAuthenticated(): boolean; | ||
@@ -189,2 +189,5 @@ getUserRole(): string; | ||
status: number; | ||
header: { | ||
[key: string]: string | string[]; | ||
}; | ||
cookies: Cookie[]; | ||
@@ -191,0 +194,0 @@ send(): any; |
@@ -23,4 +23,4 @@ /// <reference types="node" /> | ||
getParam(key: string): string; | ||
isAccept(mime: string): boolean; | ||
isAuthenticated(): boolean; | ||
getAccepts(key: string | string[]): string | boolean; | ||
getUserRole(): string; | ||
@@ -27,0 +27,0 @@ controllerInfo?: Core.ControllerInfo; |
@@ -6,4 +6,7 @@ import * as Core from "../core"; | ||
status: number; | ||
header: { | ||
[key: string]: string | string[]; | ||
}; | ||
cookies: Core.Cookie[]; | ||
send(): void; | ||
} |
@@ -15,3 +15,3 @@ "use strict"; | ||
this.type = "application/json"; | ||
if (request.isAccept("text/xml")) { | ||
if (request.getAccepts("xml")) { | ||
this.type = "text/xml"; | ||
@@ -18,0 +18,0 @@ this.body = Xml(this.body); |
@@ -9,4 +9,4 @@ "use strict"; | ||
HttpRequest.prototype.getParam = function (key) { return; }; | ||
HttpRequest.prototype.isAccept = function (mime) { return false; }; | ||
HttpRequest.prototype.isAuthenticated = function () { return false; }; | ||
HttpRequest.prototype.getAccepts = function (key) { return false; }; | ||
HttpRequest.prototype.getUserRole = function () { return ""; }; | ||
@@ -13,0 +13,0 @@ return HttpRequest; |
{ | ||
"name": "kamboja", | ||
"version": "0.0.1-53", | ||
"version": "0.0.1-54", | ||
"description": "MVC Framework powered by TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/source/index.js", |
156315
3658