UNPKG
@request/core
Version:
latest (0.1.0)
0.1.0
HTTP Client Library
github.com/request/core
request/core
@request/core
/
lib
/
options
/
end.js
14 lines
(11 loc)
•
186 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
exports
.
request
=
function
(
req, options
) {
if
(options.
end
===
false
)
return
if
(
// not started
!req.
_started
&&
// not piped
!req.
_src
) { req.
end
() } }