|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
|
Translation changed |
|
The parser contains a message constructed internally. Arguments passed to the parser's constructor are forwarded into the message container. The caller can access the message inside the parser by calling解析器内部包含一个构造好的消息对象。传入解析器构造函数的参数会被转发到消息容器中。调用方可以通过调用 [link beast.ref.boost__beast__http__parser.get`parser::get`]. If the `Fields` and `Body` types are [*MoveConstructible], the caller can take ownership of the message by calling] 来访问解析器内部的消息。如果 Fields 和 Body 类型满足可移动构造要求,调用方可以通过调用 [link beast.ref.boost__beast__http__parser.release`parser::release`]. In this example we read an HTTP response with a string body using a parser, then print the response:] 获得消息的所有权。以下示例使用解析器读取一个包含字符串消息体的 HTTP 响应,并将其打印出来: