mirror of
https://github.com/Syping/dtranslatebot.git
synced 2026-04-21 22:50:41 +02:00
translator: reuse http_request instance
This commit is contained in:
parent
305cbc9437
commit
5e3808204e
8 changed files with 19 additions and 23 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#define TRANSLATOR_MOZHI_H
|
||||
|
||||
#include <cstdint>
|
||||
#include "../../core/http_request.h"
|
||||
#include "../../core/translator.h"
|
||||
|
||||
namespace bot {
|
||||
|
|
@ -35,6 +36,7 @@ namespace bot {
|
|||
private:
|
||||
std::string m_engine;
|
||||
std::string m_hostname;
|
||||
bot::http::http_request m_http;
|
||||
supported_languages m_languages;
|
||||
uint16_t m_port;
|
||||
std::string m_url;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue