@@ -28,15 +28,14 @@ module.exports = read
2828/**
2929 * Read a request into a buffer and parse.
3030 *
31- * @param {object } req
32- * @param {object } res
33- * @param {function } next
34- * @param {function } parse
35- * @param {function } debug
36- * @param {object } options
31+ * @param {Object } req
32+ * @param {Object } res
33+ * @param {Function } next
34+ * @param {Function } parse
35+ * @param {Function } debug
36+ * @param {Object } options
3737 * @private
3838 */
39-
4039function read ( req , res , next , parse , debug , options ) {
4140 if ( onFinished . isFinished ( req ) ) {
4241 debug ( 'body already parsed' )
@@ -176,13 +175,12 @@ function read (req, res, next, parse, debug, options) {
176175/**
177176 * Get the content stream of the request.
178177 *
179- * @param {object } req
180- * @param {function } debug
181- * @param {boolean } [ inflate=true]
182- * @return { object }
183- * @api private
178+ * @param {Object } req
179+ * @param {Function } debug
180+ * @param {boolean } inflate
181+ * @returns { Object }
182+ * @private
184183 */
185-
186184function contentstream ( req , debug , inflate ) {
187185 var encoding = ( req . headers [ 'content-encoding' ] || 'identity' ) . toLowerCase ( )
188186 var length = req . headers [ 'content-length' ]
@@ -209,9 +207,9 @@ function contentstream (req, debug, inflate) {
209207/**
210208 * Create a decompression stream for the given encoding.
211209 * @param {string } encoding
212- * @param {function } debug
213- * @return { object }
214- * @api private
210+ * @param {Function } debug
211+ * @returns { Object }
212+ * @private
215213 */
216214function createDecompressionStream ( encoding , debug ) {
217215 switch ( encoding ) {
@@ -235,11 +233,10 @@ function createDecompressionStream (encoding, debug) {
235233/**
236234 * Dump the contents of a request.
237235 *
238- * @param {object } req
239- * @param {function } callback
240- * @api private
236+ * @param {Object } req
237+ * @param {Function } callback
238+ * @private
241239 */
242-
243240function dump ( req , callback ) {
244241 if ( onFinished . isFinished ( req ) ) {
245242 callback ( null )
0 commit comments