A Koa Request object is an abstraction on top of node's vanilla request object, providing additional functionality that is useful for every day HTTP server development. API Request header object. req.method Request method. req.method= Set request method, useful for implementing middleware such as methodOverride(). req.length Return request Content-Length as a number when present, or undefined.

Commentaires

Vous devez vous inscrire ou vous connecter pour poster un commentaire