|
typedef void(* | typeof_nim_http_init) () |
|
typedef void(* | typeof_nim_http_uninit) () |
|
typedef void(* | typeof_nim_http_init_log) (const char *log_file_path) |
|
typedef bool(* | typeof_nim_http_is_init_log) () |
|
typedef HttpRequestHandle(* | typeof_nim_http_create_download_file_request) (const char *url, const char *download_file_path, nim_http_request_completed_cb complete_cb, const void *user_data) |
|
typedef HttpRequestHandle(* | typeof_nim_http_create_download_file_range_request) (const char *url, const char *download_file_path, int64_t range_start, nim_http_request_completed_cb complete_cb, const void *user_data) |
|
typedef HttpRequestHandle(* | typeof_nim_http_create_request) (const char *url, const char *post_body, size_t post_body_size, nim_http_request_response_cb response_cb, const void *user_data) |
|
typedef HttpRequestHandle(* | typeof_nim_http_create_request_ex) (const char *url, const char *post_body, size_t post_body_size, nim_http_request_response_ex_cb response_cb, const void *user_data) |
|
typedef void(* | typeof_nim_http_add_request_header) (HttpRequestHandle request_handle, const char *key, const char *value) |
|
typedef void(* | typeof_nim_http_set_request_progress_cb) (HttpRequestHandle request_handle, nim_http_request_progress_cb progress_callback, const void *user_data) |
|
typedef void(* | typeof_nim_http_set_request_speed_cb) (HttpRequestHandle request_handle, nim_http_request_speed_cb speed_callback, const void *user_data) |
|
typedef void(* | typeof_nim_http_set_request_transfer_cb) (HttpRequestHandle request_handle, nim_http_request_transfer_cb transfer_callback, const void *user_data) |
|
typedef void(* | typeof_nim_http_set_request_method_as_post) (HttpRequestHandle request_handle) |
|
typedef void(* | typeof_nim_http_set_timeout) (HttpRequestHandle request_handle, int timeout_ms) |
|
typedef void(* | typeof_nim_http_set_low_speed) (HttpRequestHandle request_handle, int low_speed_limit, int low_speed_time) |
|
typedef void(* | typeof_nim_http_set_proxy) (HttpRequestHandle request_handle, int type, const char *host, short port, const char *user, const char *pass) |
|
typedef HttpRequestID(* | typeof_nim_http_post_request) (HttpRequestHandle) |
|
typedef void(* | typeof_nim_http_remove_request) (HttpRequestID http_request_id) |
|
typedef const char *const(* | typeof_nim_http_get_response_head) (HttpRequestID http_request_id) |
|
typedef std::function< void(bool, int)> | CompletedCallback |
|
typedef std::function< void(bool, int, const std::string &)> | ResponseCallback |
|
typedef std::function< void(bool, int, const std::string &, const std::string &)> | ResponseCallbackEx |
|
typedef std::function< void(double, double, double, double)> | ProgressCallback |
|
typedef std::function< void(double, double)> | SpeedCallback |
|
typedef std::function< void(double, double, double, double)> | TransferCallback |
|
|
nim::SDKInstance * | sdk_instance_ = nullptr |
|
typeof_nim_http_init | g_nim_http_init = nullptr |
|
typeof_nim_http_uninit | g_nim_http_uninit = nullptr |
|
typeof_nim_http_init_log | g_nim_http_init_log = nullptr |
|
typeof_nim_http_is_init_log | g_nim_http_is_init_log = nullptr |
|
typeof_nim_http_create_download_file_request | g_nim_http_create_download_file_request = nullptr |
|
typeof_nim_http_create_download_file_range_request | g_nim_http_create_download_file_range_request = nullptr |
|
typeof_nim_http_create_request | g_nim_http_create_request = nullptr |
|
typeof_nim_http_create_request_ex | g_nim_http_create_request_ex = nullptr |
|
typeof_nim_http_add_request_header | g_nim_http_add_request_header = nullptr |
|
typeof_nim_http_set_request_progress_cb | g_nim_http_set_request_progress_cb = nullptr |
|
typeof_nim_http_set_request_speed_cb | g_nim_http_set_request_speed_cb = nullptr |
|
typeof_nim_http_set_request_transfer_cb | g_nim_http_set_request_transfer_cb = nullptr |
|
typeof_nim_http_set_request_method_as_post | g_nim_http_set_request_method_as_post = nullptr |
|
typeof_nim_http_set_timeout | g_nim_http_set_timeout = nullptr |
|
typeof_nim_http_set_low_speed | g_nim_http_set_low_speed = nullptr |
|
typeof_nim_http_set_proxy | g_nim_http_set_proxy = nullptr |
|
typeof_nim_http_post_request | g_nim_http_post_request = nullptr |
|
typeof_nim_http_remove_request | g_nim_http_remove_request = nullptr |
|
typeof_nim_http_get_response_head | g_nim_http_get_response_head = nullptr |
|
NIMProxyType | proxy_type_ = kNIMProxyNone |
|
std::string | proxy_host_ |
|
short | proxy_port_ = 0 |
|
std::string | proxy_user_ |
|
std::string | proxy_pass_ |
|