File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Echoサーバとは、送られてきたリクエストの内容をそのまま
23
23
```
24
24
25
25
` app.use(middleware) ` という形で、_ middleware_と呼ばれる関数には` request ` や` response ` といったオブジェクトが渡されます。
26
- そのため、リクエストをフィルタリングしたり、ログを取ったり 、任意のレスポンスを返したり出来るようになっています。
26
+ この ` request ` や ` response ` を_middleware_で処理することでログを取ったり 、任意のレスポンスを返したり出来るようになっています。
27
27
28
28
Echoサーバでは ` req.pipe(res); ` という形でリクエストをそのままレスポンスとして流す事で実現されています。
29
29
Original file line number Diff line number Diff line change 2
2
import errorHandler from "./errorHandler" ;
3
3
import hello from "./hello" ;
4
4
import nosniff from "./nosniff" ;
5
- import assert from "assert" ;
6
5
import connect from "connect" ;
7
6
import http from "http" ;
8
- import fetch from "node-fetch" ;
9
7
10
8
const responseText = "response text" ;
11
9
let app = connect ( ) ;
You can’t perform that action at this time.
0 commit comments