VirtualBox

Changeset 74202 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 11, 2018 10:48:41 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rest: More client request base tests. Added RTHttpGetHeaderCount and RTHttpGetByOrdinal for testing purposes. bugref:9167

File:
1 edited

Legend:

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

    r74126 r74202  
    332332
    333333/**
     334 * Gets the number of headers specified by RTHttpAddHeader, RTHttpAddRawHeader or RTHttpSetHeaders.
     335 *
     336 * @returns Number of headers.
     337 * @param   hHttp           The HTTP client handle.
     338 * @note    This can be slow and is only really intended for test cases and debugging!
     339 */
     340RTR3DECL(size_t)    RTHttpGetHeaderCount(RTHTTP hHttp);
     341
     342/**
     343 * Gets a header by ordinal.
     344 *
     345 * Can be used together with RTHttpGetHeaderCount by test case and debug code to
     346 * iterate headers specified by RTHttpAddHeader, RTHttpAddRawHeader or RTHttpSetHeaders.
     347 *
     348 * @returns Number of headers.
     349 * @param   hHttp           The HTTP client handle.
     350 * @note    This can be slow and is only really intended for test cases and debugging!
     351 */
     352RTR3DECL(const char *) RTHttpGetByOrdinal(RTHTTP hHttp, size_t iOrdinal);
     353
     354/**
    334355 * Sign all headers present according to pending "Signing HTTP Messages" RFC.
    335356 *
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