A
A
Alexander Fedoruk2014-06-18 13:33:42
JavaScript
Alexander Fedoruk, 2014-06-18 13:33:42

How to find out what is in request (nodejs)?

I started to study nodejs, I know that when processing a request, the server accepts the text of the request itself. But the documentation does not say anywhere what is in this very request. Where can you read about it? Or how do you know?
Note. Tried to display the request text using console.log(); - due to the windoconsole, the beginning of the request is lost: s

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Komarov, 2014-06-25
@AlexSaFF

if under linux, there is a wonderful node-inspector module, you can debug the server code in the browser

S
Sergey Krasnodemsky, 2014-06-18
@Prognosticator

Is it possible
or a specific parameter
console.log(req.user.name);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question