The callback concatenating data arriving from CURL http requests into * a target SDS string. */
| 236 | /* The callback concatenating data arriving from CURL http requests into |
| 237 | * a target SDS string. */ |
| 238 | size_t makeHTTPGETCallWriterSDS(char *ptr, size_t size, size_t nmemb, void *userdata) |
| 239 | { |
| 240 | UNUSED(size); |
| 241 | sds *body = userdata; |
| 242 | *body = sdscatlen(*body,ptr,nmemb); |
| 243 | return nmemb; |
| 244 | } |
| 245 | |
| 246 | /* The callback writing the CURL reply to a file. */ |
| 247 | size_t makeHTTPGETCallWriterFILE(char *ptr, size_t size, size_t nmemb, void *userdata) |
nothing calls this directly
no test coverage detected