Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
[itemized_list [ If `(v < 11 && b)`, then all "close" tokens present in the value are removed, and the "keep-alive" token is added to the value if it is not already present. ][ If `(v < 11 && ! b)`, then all "close" and "keep-alive" tokens present in the value are removed.
][ If `(v == 11 && b)`, then all "keep-alive" and "close" tokens present in the value are removed. ][ If `(v == 11 && ! b)`, then all "keep-alive" tokens present in the value are removed, and the "close" token is added to the value if it is not already present. ]]
If the result of adjusting the field value produces an empty string, the field is removed from the container.
Adjusts the根据 [@https://tools.ietf.org/html/rfc7230#section-6.1 [*Connection]]field value depending on the values of字段值以及 `v`and和 `b`. The field value is treated as的值进行如下调整。该字段值被视为 [@https://tools.ietf.org/html/rfc7230#section-6.1 ['connection-option]] (rfc7230).
。[itemized_list [ If `(v < 11 && b)`, then all "close" tokens present in the value are removed, and the "keep-alive" token is added to the value if it is not already present. ][ If
- 如果 `(v < 11 && b)`,则从字段值中移除所有 "close" 标记,若 "keep-alive" 标记尚不存在,则将其添加到字段值中。
- 如果 `(v < 11 && !
b)`, then all,则从字段值中移除所有 "close"and和 "keep-alive"tokens present in the value are removed.
标记。][ If
- 如果 `(v == 11 && b)`
, then all,则从字段值中移除所有 "keep-alive"and和 "close"tokens present in the value are removed. ][ If标记。- 如果 `(v == 11 && !
b)`, then all,则从字段值中移除所有 "keep-alive"tokens present in the value are removed, and the "close" token is added to the value if it is not already present. ]]
标记,若 "close" 标记尚不存在,则将其添加到字段值中。If the result of adjusting the field value produces an empty string, the field is removed from the container.
如果调整字段值的结果产生空字符串,则从容器中移除该字段。