Skip to content

AnoyingShulkerMC/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

post-parser

post-parser is a parser that parser post request with only few lines. post-parser only supports parsing requests in the mime type application/x-www-form-urlencoded We are working to support parsing requests in text/plain In order to parse a post request use this code:

var http = require("http")
http.createServer(function(req,res){
  if(req.method = "POST"){
    let parse = require("post-parser")
    parse(req,function(result,err){
      if (err) throw err;
      res.write(result)
      res.end()
    })
  }
}).listen(8080)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors