repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/neostandard-0.8.0 into combined-prs-branch
[poolifier.git]
/
examples
/
typescript
/
http-client-pool
/
httpd-echo.js
diff --git
a/examples/typescript/http-client-pool/httpd-echo.js
b/examples/typescript/http-client-pool/httpd-echo.js
index cbfb8da7ccfd7869eb3b11a1492b748617810100..81b90651a05caa1fd326e29881e57d050f7e6ec1 100644
(file)
--- a/
examples/typescript/http-client-pool/httpd-echo.js
+++ b/
examples/typescript/http-client-pool/httpd-echo.js
@@
-7,7
+7,7
@@
server
.on('request', (request, response) => {
let body = []
request
.on('request', (request, response) => {
let body = []
request
- .on('data',
(chunk)
=> {
+ .on('data',
chunk
=> {
body.push(chunk)
})
.on('end', () => {
body.push(chunk)
})
.on('end', () => {
@@
-15,7
+15,7
@@
server
console.info(`==== ${request.method} ${request.url} ====`)
console.info('> Headers')
console.info(`==== ${request.method} ${request.url} ====`)
console.info('> Headers')
- console.
log
(request.headers)
+ console.
info
(request.headers)
console.info('> Body')
console.info(body)
console.info('> Body')
console.info(body)