VirtualBox

Changeset 87042 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 4, 2020 12:10:36 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141732
Message:

Shared Clipboard/Transfers: More cleanup / documentation work. bugref:9874

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r87037 r87042  
    169169
    170170/**
     171 * Structure for maintaining a HTTP body.
     172 */
     173typedef struct RTHTTPBODY
     174{
     175    /** Body to send, if any. Can be NULL. */
     176    void            *pvBody;
     177    /** Body allocation size (in bytes). */
     178    size_t           cbBodyAlloc;
     179    /** How much body data is being used (in bytes). */
     180    size_t           cbBodyUsed;
     181    /** Current body data read/write offset (in bytes). */
     182    size_t           offBody;
     183} RTHTTPBODY;
     184/** Pointer to a HTTP body. */
     185typedef RTHTTPBODY *PRTHTTPBODY;
     186
     187/**
    171188 * Returns the name of the HTTP method.
    172189 * @returns Read only string.
  • trunk/include/iprt/http-server.h

    r87041 r87042  
    5555typedef struct RTHTTPSERVERREQ
    5656{
     57    /** Request URL. */
    5758    char            *pszUrl;
     59    /** Request method. */
    5860    RTHTTPMETHOD     enmMethod;
     61    /** Request header list. */
    5962    RTHTTPHEADERLIST hHdrLst;
    60     void            *pvBody;
    61     size_t           cbBodyAlloc;
    62     size_t           cbBodyUsed;
     63    /** Request body data. */
     64    RTHTTPBODY       Body;
    6365} RTHTTPSERVERREQ;
    6466/** Pointer to a HTTP client request. */
     
    7072typedef struct RTHTTPSERVERRESP
    7173{
     74    /** HTTP status to send. */
    7275    RTHTTPSTATUS     enmSts;
     76    /** List of headers to send. */
    7377    RTHTTPHEADERLIST hHdrLst;
    74     void            *pvBody;
    75     size_t           cbBodyAlloc;
    76     size_t           cbBodyUsed;
     78    /** Body data to send. */
     79    RTHTTPBODY       Body;
    7780} RTHTTPSERVERRESP;
    7881/** Pointer to a HTTP server response. */
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