The use of the http.request end method in node.js

  • 2020-03-30 04:35:47
  • OfStack

Method description:

Complete the request send.

If any part of the request body is not sent, it is flushed to the stream.

If a data value is specified, a request-write (data, encoding) is executed after request-end ()

Grammar:


request.end([data], [encoding])

Receiving parameters:

Data                            The data value to be output at the end of the request
Encoding            Data is worth character encoding


Related articles: