VirtualBox

Changeset 73888 in vbox for trunk/include


Ignore:
Timestamp:
Aug 25, 2018 1:26:05 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124605
Message:

IPRT/http: Added a couple functions for adding headers. Issues with resetting headers and out-of-memory in the existing function. bugref:9167

File:
1 edited

Legend:

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

    r73886 r73888  
    242242
    243243/**
    244  * Set custom headers.
     244 * Set custom raw headers.
    245245 *
    246246 * @returns iprt status code.
     
    251251 */
    252252RTR3DECL(int) RTHttpSetHeaders(RTHTTP hHttp, size_t cHeaders, const char * const *papszHeaders);
     253
     254/**
     255 * Appends a raw header.
     256 *
     257 * @returns IPRT status code.
     258 * @param   hHttp           The HTTP client instance.
     259 * @param   pszHeader       Header string on the form "foo: bar".
     260 */
     261RTR3DECL(int) RTHttpAppendRawHeader(RTHTTP hHttp, const char *pszHeader);
     262
     263/**
     264 * Appends a header field and value.
     265 *
     266 * @returns IPRT status code.
     267 * @param   hHttp           The HTTP client instance.
     268 * @param   pszField        The header field name.
     269 * @param   pszValue        The header field value.
     270 * @param   fFlags          Flags reserved for controlling encoding, MBZ.
     271 */
     272RTR3DECL(int) RTHttpAppendHeader(RTHTTP hHttp, const char *pszField, const char *pszValue, uint32_t fFlags);
    253273
    254274/**
Note: See TracChangeset for help on using the changeset viewer.

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