request.end([data[, encoding]][, callback])
data<string> | <Buffer> | <Uint8Array>encoding<string>callback<Function>- 返回:<this>
完成发送请求。如果有任何部分的请求体未发送,它会将其刷新到流中。如果请求是分块的,这将发送终止的 `'0
'`。
【Finishes sending the request. If any parts of the body are
unsent, it will flush them to the stream. If the request is
chunked, this will send the terminating '0\r\n\r\n'.】
如果指定了 data,等同于先调用 request.write(data, encoding),然后再调用 request.end(callback)。
【If data is specified, it is equivalent to calling
request.write(data, encoding) followed by request.end(callback).】
如果指定了 callback,当请求流完成时,它将被调用。
【If callback is specified, it will be called when the request stream
is finished.】