Home >Web Front-end >JS Tutorial >Instructions for using the http.request.end method in node.js_node.js

Instructions for using the http.request.end method in node.js_node.js

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 16:27:481421browse

Method description:

Complete request sending.

If any part of the request body has not been sent, it will be flushed to the stream.

If the data value is specified, request.write(data, encoding)

will be executed after request.end() is executed.

Grammar:

Copy code The code is as follows:

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

Receive parameters:

data The data value output after the request is completed
encoding data is worth the character encoding

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn