Changeset 87042 in vbox for trunk/include/iprt
- Timestamp:
- Dec 4, 2020 12:10:36 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 141732
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/http-common.h
r87037 r87042 169 169 170 170 /** 171 * Structure for maintaining a HTTP body. 172 */ 173 typedef 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. */ 185 typedef RTHTTPBODY *PRTHTTPBODY; 186 187 /** 171 188 * Returns the name of the HTTP method. 172 189 * @returns Read only string. -
trunk/include/iprt/http-server.h
r87041 r87042 55 55 typedef struct RTHTTPSERVERREQ 56 56 { 57 /** Request URL. */ 57 58 char *pszUrl; 59 /** Request method. */ 58 60 RTHTTPMETHOD enmMethod; 61 /** Request header list. */ 59 62 RTHTTPHEADERLIST hHdrLst; 60 void *pvBody; 61 size_t cbBodyAlloc; 62 size_t cbBodyUsed; 63 /** Request body data. */ 64 RTHTTPBODY Body; 63 65 } RTHTTPSERVERREQ; 64 66 /** Pointer to a HTTP client request. */ … … 70 72 typedef struct RTHTTPSERVERRESP 71 73 { 74 /** HTTP status to send. */ 72 75 RTHTTPSTATUS enmSts; 76 /** List of headers to send. */ 73 77 RTHTTPHEADERLIST hHdrLst; 74 void *pvBody; 75 size_t cbBodyAlloc; 76 size_t cbBodyUsed; 78 /** Body data to send. */ 79 RTHTTPBODY Body; 77 80 } RTHTTPSERVERRESP; 78 81 /** Pointer to a HTTP server response. */
Note:
See TracChangeset
for help on using the changeset viewer.