VirtualBox

Changeset 74009 in vbox for trunk/include/iprt/cpp


Ignore:
Timestamp:
Aug 31, 2018 7:28:56 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124755
Message:

IPRT/rest: Pass the response object as a parmeter to the api emthods to make sure we avoid all unnecessary object copying. Added rest() method to the response objects so they can be reused. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restbase.h

    r74008 r74009  
    14551455
    14561456    /**
     1457     * Resets the object state.
     1458     */
     1459    virtual void reset(void);
     1460
     1461    /**
    14571462     * Prepares the HTTP handle for receiving the response.
    14581463     *
     
    17041709     * Implements stuff for making an API call.
    17051710     *
     1711     * @returns a_pResponse->getStatus()
    17061712     * @param   a_rRequest      Reference to the request object.
    17071713     * @param   a_enmHttpMethod The HTTP request method.
     
    17091715     * @param   a_pszMethod     The method name, for logging purposes.
    17101716     */
    1711     virtual void doCall(RTCRestClientRequestBase const &a_rRequest, RTHTTPMETHOD a_enmHttpMethod,
    1712                         RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod);
     1717    virtual int doCall(RTCRestClientRequestBase const &a_rRequest, RTHTTPMETHOD a_enmHttpMethod,
     1718                       RTCRestClientResponseBase *a_pResponse, const char *a_pszMethod);
    17131719
    17141720};
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