adonis-framework
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -0,1 +1,11 @@ | ||
<a name="3.0.3"></a> | ||
## [3.0.3](https://github.com/adonisjs/adonis-framework/compare/v3.0.2...v3.0.3) (2016-10-03) | ||
### Features | ||
* **request:** add extended support for accept header ([7aaf09e](https://github.com/adonisjs/adonis-framework/commit/7aaf09e)) | ||
<a name="3.0.2"></a> | ||
@@ -2,0 +12,0 @@ ## [3.0.2](https://github.com/adonisjs/adonis-framework/compare/v3.0.1...v3.0.2) (2016-09-23) |
{ | ||
"name": "adonis-framework", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Adonis framework makes it easy for you to write webapps with less code", | ||
@@ -62,3 +62,3 @@ "main": "index.js", | ||
"node-exceptions": "^1.0.3", | ||
"node-req": "^1.0.3", | ||
"node-req": "^1.0.5", | ||
"node-res": "^3.0.0", | ||
@@ -65,0 +65,0 @@ "node-uuid": "^1.4.7", |
@@ -10,2 +10,3 @@ # AdonisJS Framework | ||
[![License](https://img.shields.io/npm/l/adonis-framework.svg?style=flat-square)](https://opensource.org/licenses/MIT) | ||
[![Support AdonisJs](https://img.shields.io/badge/patreon-support-brightgreen.svg?style=flat-square)](https://www.patreon.com/adonisframework) | ||
@@ -12,0 +13,0 @@ > :pray: This repository contains the core of the AdonisJS framework. |
@@ -615,2 +615,68 @@ 'use strict' | ||
/** | ||
* Returns the request language set via Accept-Language | ||
* header. | ||
* | ||
* @param {Array} [languages] | ||
* | ||
* @return {String} | ||
*/ | ||
language (languages) { | ||
return nodeReq.language(this.request, languages) | ||
} | ||
/** | ||
* Returns list of request languages set via Accept-Language | ||
* header. | ||
* | ||
* @return {Array} | ||
*/ | ||
languages () { | ||
return nodeReq.languages(this.request) | ||
} | ||
/** | ||
* Returns the request encoding set via Accept-Encoding | ||
* header. | ||
* | ||
* @param {Array} [encodings] | ||
* | ||
* @return {String} | ||
*/ | ||
encoding (encodings) { | ||
return nodeReq.encoding(this.request, encodings) | ||
} | ||
/** | ||
* Returns list of request encodings set via Accept-Encoding | ||
* header. | ||
* | ||
* @return {Array} | ||
*/ | ||
encodings () { | ||
return nodeReq.encodings(this.request) | ||
} | ||
/** | ||
* Returns the request charset set via Accept-Charset | ||
* header. | ||
* | ||
* @param {Array} [encodings] | ||
* | ||
* @return {String} | ||
*/ | ||
charset (charsets) { | ||
return nodeReq.charset(this.request) | ||
} | ||
/** | ||
* Returns list of request charsets set via Accept-Charset | ||
* header. | ||
* | ||
* @return {Array} | ||
*/ | ||
charsets () { | ||
return nodeReq.charsets(this.request) | ||
} | ||
/** | ||
* adds a new method to the request prototype | ||
@@ -617,0 +683,0 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180743
57
6157
58
Updatednode-req@^1.0.5