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

WBOY
Release: 2016-05-16 16:27:48
Original
1376 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template