aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h62
1 files changed, 52 insertions, 10 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 20a406e3..e3d9a433 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -276,19 +276,19 @@ MHD_DLOG (const struct MHD_Daemon *daemon,
276 276
277 277
278/** 278/**
279 * Header or cookie in HTTP request or response. 279 * Header or footer for HTTP response.
280 */ 280 */
281struct MHD_HTTP_Header 281struct MHD_HTTP_Res_Header
282{ 282{
283 /** 283 /**
284 * Headers are kept in a double-linked list. 284 * Headers are kept in a double-linked list.
285 */ 285 */
286 struct MHD_HTTP_Header *next; 286 struct MHD_HTTP_Res_Header *next;
287 287
288 /** 288 /**
289 * Headers are kept in a double-linked list. 289 * Headers are kept in a double-linked list.
290 */ 290 */
291 struct MHD_HTTP_Header *prev; 291 struct MHD_HTTP_Res_Header *prev;
292 292
293 /** 293 /**
294 * The name of the header (key), without the colon. 294 * The name of the header (key), without the colon.
@@ -311,8 +311,50 @@ struct MHD_HTTP_Header
311 size_t value_size; 311 size_t value_size;
312 312
313 /** 313 /**
314 * Type of the header (where in the HTTP protocol is this header 314 * Type of the value.
315 * from). 315 */
316 enum MHD_ValueKind kind;
317
318};
319
320
321/**
322 * Header, footer, or cookie for HTTP request.
323 */
324struct MHD_HTTP_Req_Header
325{
326 /**
327 * Headers are kept in a double-linked list.
328 */
329 struct MHD_HTTP_Req_Header *next;
330
331 /**
332 * Headers are kept in a double-linked list.
333 */
334 struct MHD_HTTP_Req_Header *prev;
335
336 /**
337 * The name of the header (key), without the colon.
338 */
339 const char *header;
340
341 /**
342 * The length of the @a header, not including the final zero termination.
343 */
344 size_t header_size;
345
346 /**
347 * The value of the header.
348 */
349 const char *value;
350
351 /**
352 * The length of the @a value, not including the final zero termination.
353 */
354 size_t value_size;
355
356 /**
357 * Type of the value.
316 */ 358 */
317 enum MHD_ValueKind kind; 359 enum MHD_ValueKind kind;
318 360
@@ -396,12 +438,12 @@ struct MHD_Response
396 /** 438 /**
397 * Head of double-linked list of headers to send for the response. 439 * Head of double-linked list of headers to send for the response.
398 */ 440 */
399 struct MHD_HTTP_Header *first_header; 441 struct MHD_HTTP_Res_Header *first_header;
400 442
401 /** 443 /**
402 * Tail of double-linked list of headers to send for the response. 444 * Tail of double-linked list of headers to send for the response.
403 */ 445 */
404 struct MHD_HTTP_Header *last_header; 446 struct MHD_HTTP_Res_Header *last_header;
405 447
406 /** 448 /**
407 * Buffer pointing to data that we are supposed 449 * Buffer pointing to data that we are supposed
@@ -915,12 +957,12 @@ struct MHD_Connection
915 /** 957 /**
916 * Linked list of parsed headers. 958 * Linked list of parsed headers.
917 */ 959 */
918 struct MHD_HTTP_Header *headers_received; 960 struct MHD_HTTP_Req_Header *headers_received;
919 961
920 /** 962 /**
921 * Tail of linked list of parsed headers. 963 * Tail of linked list of parsed headers.
922 */ 964 */
923 struct MHD_HTTP_Header *headers_received_tail; 965 struct MHD_HTTP_Req_Header *headers_received_tail;
924 966
925 /** 967 /**
926 * Response to transmit (initially NULL). 968 * Response to transmit (initially NULL).