| 11 | #include "http_client.h" |
| 12 | |
| 13 | http_client::http_client(acl::aio_socket_stream *client, int rw_timeout) |
| 14 | : conn_(client->get_astream()) |
| 15 | , rw_timeout_(rw_timeout) |
| 16 | , content_length_(0) |
| 17 | { |
| 18 | hdr_req_ = NULL; |
| 19 | req_ = NULL; |
| 20 | acl_aio_add_close_hook(conn_, on_close, this); |
| 21 | acl_aio_add_timeo_hook(conn_, on_timeo, this); |
| 22 | } |
| 23 | |
| 24 | http_client::~http_client(void) |
| 25 | { |
nothing calls this directly
no test coverage detected