Comparing version 0.1.0-beta-64 to 0.1.0-beta-65
@@ -27,2 +27,52 @@ "use strict"; | ||
* @author Igor Ivanovic | ||
* @method Controller#getRequestDomain | ||
* @description | ||
* Get request domain | ||
*/ | ||
getRequestDomain: function Controller_getRequestDomain() { | ||
return this.__requestApi__.getRequestDomain(); | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Controller#getRequestRemoteAddress | ||
* @description | ||
* Get request remote address | ||
*/ | ||
getRequestRemoteAddress: function Controller_getRequestRemoteAddress() { | ||
return this.__requestApi__.getRequestRemoteAddress(); | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Controller#getRequestRemotePort | ||
* @description | ||
* Get request remote port | ||
*/ | ||
getRequestRemotePort: function Controller_getRequestRemotePort() { | ||
return this.__requestApi__.getRequestRemotePort(); | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Controller#getRequestLocalAddress | ||
* @description | ||
* Get request local address | ||
*/ | ||
getRequestLocalAddress: function Controller_getRequestLocalAddress() { | ||
return this.__requestApi__.getRequestLocalAddress(); | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Controller#getRequestLocalPort | ||
* @description | ||
* Get request local port | ||
*/ | ||
getRequestLocalPort: function Controller_getRequestLocalPort() { | ||
return this.__requestApi__.getRequestLocalPort(); | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Controller#setStatusCode | ||
@@ -29,0 +79,0 @@ * @param code {number} |
@@ -180,2 +180,60 @@ "use strict"; | ||
* @author Igor Ivanovic | ||
* @method Request#getRequestDomain | ||
* | ||
* @description | ||
* Return request domain | ||
*/ | ||
getRequestDomain: function Request_getRequestDomain() { | ||
return this.request.connection.domain; | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Request#getRequestIpAddres | ||
* | ||
* @description | ||
* Request remote ip address | ||
*/ | ||
getRequestRemoteAddress: function Request_getRequestRemoteAddress() { | ||
return this.request.connection.remoteAddress; | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Request#getRequestRemotePort | ||
* | ||
* @description | ||
* Request remote port | ||
*/ | ||
getRequestRemotePort: function Request_getRequestRemotePort() { | ||
return this.request.connection.remotePort; | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Request#getRequestLocalAddress | ||
* | ||
* @description | ||
* Request locals address | ||
*/ | ||
getRequestLocalAddress: function Request_getRequestLocalAddress() { | ||
return this.request.connection.localAddress; | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Request#getRequestLocalPort | ||
* | ||
* @description | ||
* Request local port | ||
*/ | ||
getRequestLocalPort: function Request_getRequestLocalPort() { | ||
return this.request.connection.localPort; | ||
}, | ||
/** | ||
* @since 0.0.1 | ||
* @author Igor Ivanovic | ||
* @method Request#getRequestHeader | ||
@@ -579,3 +637,8 @@ * | ||
forwardUrl: this.forward.bind(this), | ||
uuid: this._uuid.bind(this) | ||
uuid: this._uuid.bind(this), | ||
getRequestDomain: this.getRequestDomain.bind(this), | ||
getRequestRemoteAddress: this.getRequestRemoteAddress.bind(this), | ||
getRequestRemotePort: this.getRequestRemotePort.bind(this), | ||
getRequestLocalAddress: this.getRequestLocalAddress.bind(this), | ||
getRequestLocalPort: this.getRequestLocalPort.bind(this) | ||
}; | ||
@@ -582,0 +645,0 @@ }, |
@@ -35,3 +35,8 @@ "use strict"; | ||
"getControllerName", | ||
"getModuleName" | ||
"getModuleName", | ||
"getRequestDomain", | ||
"getRequestRemoteAddress", | ||
"getRequestRemotePort", | ||
"getRequestLocalAddress", | ||
"getRequestLocalPort" | ||
].forEach(function (method) { | ||
@@ -38,0 +43,0 @@ if (!(method in this)) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.0-beta-64", | ||
"version": "0.1.0-beta-65", | ||
"dependencies" : { | ||
@@ -8,0 +8,0 @@ "mongoose": "3.8.x", |
149459
4809