Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Now we analyze the structure of the larger message container. The library uses a handle/body idiom. There are two public message container interfaces, one for requests (`http_request`) and one for responses (`http_response`). Each interface maintains a private shared pointer to an implementation class. Public member function calls are routed to the internal implementation. This is the first implementation class, which forms the base class for both the request and response implementations:现在,我们来分析更大的消息容器的结构。该库使用了句柄/主体惯用法(handle/body idiom)。它提供了两个公开的消息容器接口,一个用于请求(`http_request`),另一个用于响应(`http_response`)。每个接口都维护着一个指向实现类的私有共享指针。公开的成员函数调用会被路由到内部的实现。以下是第一个实现类,它构成了请求和响应实现类的基类: ``` namespace details {