#######################################################################################################################* *----------------------------------------------------Http public api------------------------------------------------------* *#########################################################################################################################*/
| 332 | *----------------------------------------------------Http public api------------------------------------------------------* |
| 333 | *#########################################################################################################################*/ |
| 334 | int Http_AsyncGetSkin(const cc_string* skinName, cc_uint8 flags) { |
| 335 | cc_string url; char urlBuffer[URL_MAX_SIZE]; |
| 336 | String_InitArray(url, urlBuffer); |
| 337 | |
| 338 | if (Utils_IsUrlPrefix(skinName)) { |
| 339 | String_Copy(&url, skinName); |
| 340 | } else { |
| 341 | String_Format2(&url, "%s/%s.png", &skinServer, skinName); |
| 342 | } |
| 343 | return Http_AsyncGetData(&url, flags); |
| 344 | } |
| 345 | |
| 346 | int Http_AsyncGetData(const cc_string* url, cc_uint8 flags) { |
| 347 | return Http_Add(url, flags, REQUEST_TYPE_GET, NULL, NULL, NULL, 0, NULL); |
no test coverage detected