VirtualBox

Changeset 73922 in vbox for trunk/include


Ignore:
Timestamp:
Aug 28, 2018 7:30:28 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124647
Message:

iprt/rest: Added error info, copy of http status, and content type to RTCRestClientResponseBase. bugref:9167

File:
1 edited

Legend:

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

    r73920 r73922  
    701701    int getStatus() { return m_rcStatus; }
    702702
     703    /**
     704     * Getter for m_rcHttp.
     705     * @returns HTTP status code or VERR_NOT_AVAILABLE.
     706     */
     707    int getHttpStatus() { return m_rcHttp; }
     708
    703709protected:
    704710    /** Negative numbers are IPRT errors, positive are HTTP status codes. */
    705711    int m_rcStatus;
     712    /** The HTTP status code, VERR_NOT_AVAILABLE if not set. */
     713    int m_rcHttp;
     714    /** Error information. */
     715    PRTERRINFO m_pErrInfo;
     716    /** The value of the Content-Type header field. */
     717    RTCString m_strContentType;
     718
     719    PRTERRINFO  allocErrInfo(void);
     720    void        deleteErrInfo(void);
     721    void        copyErrInfo(PCRTERRINFO pErrInfo);
    706722
    707723    /**
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