VirtualBox

Changeset 74060 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 4, 2018 9:28:28 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/http: s/RTHttpAppend/RTHttpAdd/[Raw]Header, defining FRONT and BACK flags. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/http.h

    r74046 r74060  
    294294RTR3DECL(int) RTHttpSetHeaders(RTHTTP hHttp, size_t cHeaders, const char * const *papszHeaders);
    295295
    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.
    298304 *
    299305 * @returns IPRT status code.
    300306 * @param   hHttp           The HTTP client handle.
    301307 * @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 */
     310RTR3DECL(int) RTHttpAddRawHeader(RTHTTP hHttp, const char *pszHeader, uint32_t fFlags);
     311
     312/**
     313 * Adds a header field and value.
    307314 *
    308315 * @returns IPRT status code.
     
    310317 * @param   pszField        The header field name.
    311318 * @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 */
     323RTR3DECL(int) RTHttpAddHeader(RTHTTP hHttp, const char *pszField, const char *pszValue, uint32_t fFlags);
    315324
    316325/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette