Changeset 73699 in vbox for trunk/include
- Timestamp:
- Aug 15, 2018 8:26:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/http.h
r73334 r73699 60 60 61 61 /** 62 * Resets a HTTP client instance. 63 * 64 * @returns iprt status code. 65 * 66 * @param hHttp Handle to the HTTP interface. 67 */ 68 RTR3DECL(int) RTHttpReset(RTHTTP hHttp); 69 70 /** 62 71 * Destroys a HTTP client instance. 63 72 * … … 310 319 RTR3DECL(int) RTHttpSetDownloadProgressCallback(RTHTTP hHttp, PRTHTTPDOWNLDPROGRCALLBACK pfnDownloadProgress, void *pvUser); 311 320 321 // ----8<--------8<---- XXX: uwe: quick and dirty curl wrappers for OCI 322 323 typedef DECLCALLBACK(size_t) RTHTTPREADCALLBACK(void *pbDst, size_t cbItem, size_t cItems, void *pvUser); 324 typedef RTHTTPREADCALLBACK *PRTHTTPREADCALLBACK; 325 326 #define RT_HTTP_READCALLBACK_ABORT 0x10000000 /* CURL_READFUNC_ABORT */ 327 328 RTR3DECL(int) RTHttpSetReadCallback(RTHTTP hHttp, PRTHTTPREADCALLBACK pfnRead, void *pvUser); 329 330 331 typedef DECLCALLBACK(size_t) RTHTTPWRITECALLBACK(char *pbSrc, size_t cbItem, size_t cItems, void *pvUser); 332 typedef RTHTTPWRITECALLBACK *PRTHTTPWRITECALLBACK; 333 334 RTR3DECL(int) RTHttpSetWriteCallback(RTHTTP hHttp, PRTHTTPWRITECALLBACK pfnWrite, void *pvUser); 335 RTR3DECL(int) RTHttpSetWriteHeaderCallback(RTHTTP hHttp, PRTHTTPWRITECALLBACK pfnWrite, void *pvUser); 336 337 338 /* these are thin wrappers for setting one or a few related curl options */ 339 RTR3DECL(int) RTHttpRawSetUrl(RTHTTP hHttp, const char *pszUrl); 340 341 RTR3DECL(int) RTHttpRawSetGet(RTHTTP hHttp); 342 RTR3DECL(int) RTHttpRawSetHead(RTHTTP hHttp); 343 RTR3DECL(int) RTHttpRawSetPost(RTHTTP hHttp); 344 RTR3DECL(int) RTHttpRawSetPut(RTHTTP hHttp); 345 RTR3DECL(int) RTHttpRawSetDelete(RTHTTP hHttp); 346 RTR3DECL(int) RTHttpRawSetCustomRequest(RTHTTP hHttp, const char *pszVerb); 347 348 RTR3DECL(int) RTHttpRawSetPostFields(RTHTTP hHttp, const void *pv, size_t cb); 349 RTR3DECL(int) RTHttpRawSetInfileSize(RTHTTP hHttp, RTFOFF cb); 350 351 RTR3DECL(int) RTHttpRawSetVerbose(RTHTTP hHttp, bool fValue); 352 RTR3DECL(int) RTHttpRawSetTimeout(RTHTTP hHttp, long sec); 353 354 RTR3DECL(int) RTHttpRawPerform(RTHTTP hHttp); 355 356 RTR3DECL(int) RTHttpRawGetResponseCode(RTHTTP hHttp, long *plCode); 312 357 313 358 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.