Changeset 74060 in vbox for trunk/include/iprt
- Timestamp:
- Sep 4, 2018 9:28:28 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/http.h
r74046 r74060 294 294 RTR3DECL(int) RTHttpSetHeaders(RTHTTP hHttp, size_t cHeaders, const char * const *papszHeaders); 295 295 296 /** 297 * Appends a raw header. 296 /** @name RTHTTPADDHDR_F_XXX - Flags for RTHttpAddRawHeader and RTHttpAddHeader 297 * @{ */ 298 #define RTHTTPADDHDR_F_BACK UINT32_C(0) /**< Append the header. */ 299 #define RTHTTPADDHDR_F_FRONT UINT32_C(1) /**< Prepend the header. */ 300 /** @} */ 301 302 /** 303 * Adds a raw header. 298 304 * 299 305 * @returns IPRT status code. 300 306 * @param hHttp The HTTP client handle. 301 307 * @param pszHeader Header string on the form "foo: bar". 302 */ 303 RTR3DECL(int) RTHttpAppendRawHeader(RTHTTP hHttp, const char *pszHeader); 304 305 /** 306 * Appends a header field and value. 308 * @param fFlags RTHTTPADDHDR_F_FRONT or RTHTTPADDHDR_F_BACK. 309 */ 310 RTR3DECL(int) RTHttpAddRawHeader(RTHTTP hHttp, const char *pszHeader, uint32_t fFlags); 311 312 /** 313 * Adds a header field and value. 307 314 * 308 315 * @returns IPRT status code. … … 310 317 * @param pszField The header field name. 311 318 * @param pszValue The header field value. 312 * @param fFlags Flags reserved for controlling encoding, MBZ. 313 */ 314 RTR3DECL(int) RTHttpAppendHeader(RTHTTP hHttp, const char *pszField, const char *pszValue, uint32_t fFlags); 319 * @param fFlags Only RTHTTPADDHDR_F_FRONT or RTHTTPADDHDR_F_BACK, 320 * may be extended with encoding controlling flags if 321 * needed later. 322 */ 323 RTR3DECL(int) RTHttpAddHeader(RTHTTP hHttp, const char *pszField, const char *pszValue, uint32_t fFlags); 315 324 316 325 /**
Note:
See TracChangeset
for help on using the changeset viewer.