Skip to content

Commit

Permalink
feat(BodyParser): create the BodyParser module. This module parses ur…
Browse files Browse the repository at this point in the history
…l encoded request bodies, json
  • Loading branch information
teclone committed Jul 20, 2018
1 parent ec5096a commit 3055a9a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/modules/BodyParser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Request body parser module
*/

export default class {

/**
*@param {string} tempDir - the absolute path to the temp directory
*@param {string} encoding - the encoding used for files
*/
constructor(tempDir, encoding) {
this.tempDir = tempDir;
this.encoding = encoding? encoding : 'latin1';
}

/**
* return module identity
*/
get [Symbol.toStringTag]() {
return 'BodyParser';
}
}

0 comments on commit 3055a9a

Please sign in to comment.