Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The[@https://tools.ietf.org/html/rfc7231#section-4.3.2 HEADrequest] method indicates to the server that the client wishes to receive the entire header that would be delivered if the method was GET, except that the body is omitted. When a client wishes to receive the response to a HEAD request, it is necessary to inform the parser not to expect a body. This is done by calling请求] 方法表示客户端希望服务器返回与 GET 请求相同的头部信息,但不包含消息体。当客户端需要接收 HEAD 请求的响应时,必须告知解析器不需要消息体。这可以通过调用 [link beast.ref.boost__beast__http__basic_parser.skip `basic_parser::skip`]with the value `true`, as shown in this example:并传入 `true` 来实现,如下例所示: