#?SuikaWiki/0.9 page-icon="HTTP" [[#comment]] *仕様書から ** RFC 2068 (HTTP/1.1) 19.7.1.1 The Keep-Alive Header > When the Keep-Alive connection-token has been transmitted with a request or a response, a Keep-Alive header field MAY also be included. The Keep-Alive header field takes the following form: [CODE(HTTP)[Keep-Alive]] [CODE(ABNF)[connection-token]] が要求または応答で転送されるとき、 [CODE(HTTP)[Keep-Alive]] 頭欄をも含めて'''構いません'''。 [CODE(HTTP)[Keep-Alive]] 頭欄は、次の書式を取ります。 > - Keep-Alive-header = "Keep-Alive" ":" 0# keepalive-param - keepalive-param = param-name "=" value > The Keep-Alive header itself is optional, and is used only if a parameter is being sent. HTTP/1.1 does not define any parameters. [CODE(HTTP)[Keep-Alive]] 頭自体は省略可能で、引数が送られるときのみ使用します。 HTTP/1.1 は引数を定義しません。 > If the Keep-Alive header is sent, the corresponding connection token MUST be transmitted. The Keep-Alive header MUST be ignored if received without the connection token. [CODE(HTTP)[Keep-Alive]] 頭が送られる場合、対応する接続字句を転送しなければ'''なりません'''。 [CODE(HTTP)[Keep-Alive]] 頭は、接続字句なしで受信した場合には無視しなければ'''なりません'''。 ** RFC の部分の License [[RFCのライセンス]] * 例 - [1] [SAMP(HTTP)[Keep-Alive: timeout=25, max=85]] - [2] [CODE(HTTP)[Keep-Alive: 300]] [[#comment]] * メモ - [3] >>2 は [[Mozilla]], >>3 は [[Apache]]