A connection endpoint has:- read timer
- A timer, initially unset.
When a connection has been established,
or whene a connection has received some data,
set connection's read timer to 60s.
When connection's read timer's current time becomes 0,
close the connection endpoint.
- 改行を読み飛ばします。
- 要求行を、要求行を構文解析した結果に設定します。
- 要求行がエラーなら、
- 致死的エラーとし、ここで停止します。
- 要求行のプロトコルの版が
null
なら、- 応答のプロトコルの版を、
HTTP/0.9
に設定します。 - 要求行の要求メソッドが
GET
以外なら、- 致死的エラーとし、ここで停止します。
- それ以外の場合、
要求ヘッダー
要求本体
[1] 致死的エラーでは、次のようにします。400
応答本体を送信します。- Close the connection endpoint.
To close the connection endpoint:- Let endpoint's connection be closed.
[3] 要求行を構文解析とは- 要求対象の先頭が
/
でなければ、エラーを返します。
CONNECT hoge HTTP/1.1
CONNECT mode
WS mode