Change interface name and make it compatible.

This commit is contained in:
Xie Han
2025-09-19 18:31:12 +08:00
parent bfb57e6323
commit 92febf72b0

View File

@@ -61,26 +61,37 @@ public:
}
public:
/* Timeout of waiting for the first package of each chunk. If not set,
the max waiting time will be the global 'response_timeout'. */
void set_watch_timeout(int timeout)
{
this->task->set_watch_timeout(timeout);
}
void set_recv_timeout(int timeout)
/* Timeout of receiving a complete chunk. */
void set_receive_timeout(int timeout)
{
this->task->set_receive_timeout(timeout);
}
/* Timeout of sending the HTTP request. */
void set_send_timeout(int timeout)
{
this->task->set_send_timeout(timeout);
}
{
this->task->set_send_timeout(timeout);
}
/* Speicify HTTP keep alive timeout. */
void set_keep_alive(int timeout)
{
this->task->set_keep_alive(timeout);
}
/* Equal to 'set_receive_timeout()'. For compatibility purpose only. */
void set_recv_timeout(int timeout)
{
this->set_receive_timeout(timeout);
}
public:
void set_ssl_ctx(SSL_CTX *ctx)
{