acl/lib_acl_cpp/include/acl_cpp/http/http_utils.hpp
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

23 lines
450 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "acl_cpp/acl_cpp_define.hpp"
namespace acl {
class ACL_CPP_API http_utils
{
public:
http_utils() {}
~http_utils() {}
/**
* 从完整的 url 中获得 WEB 服务器地址格式ip/domain:port
* @param url {const char*} HTTP url非空
* @param out {char*} 存储结果
* @param size {size_t} out 缓冲区大小
* @return {bool} 是否成功获得
*/
static bool get_addr(const char* url, char* out, size_t size);
};
} // namespace acl