diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-03 19:06:19 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-03 19:06:19 +0300 |
commit | 650d4685f7e9f8297df706d0c220fbd12e6e84d4 (patch) | |
tree | cf7e52a90f2eb00fa7e07926736d2df502eb47a6 /src/include | |
parent | e0d851cee3ada233b7ede637fd9155dfa7756907 (diff) | |
download | libmicrohttpd-650d4685f7e9f8297df706d0c220fbd12e6e84d4.tar.gz libmicrohttpd-650d4685f7e9f8297df706d0c220fbd12e6e84d4.zip |
Added MHD_get_connection_values_n() function to get keys and
values with size. Can get keys and values with binary zero.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/microhttpd.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 3dbda318..a492071a 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -2493,7 +2493,8 @@ MHD_run_from_select (struct MHD_Daemon *daemon, | |||
2493 | * @param iterator callback to call on each header; | 2493 | * @param iterator callback to call on each header; |
2494 | * maybe NULL (then just count headers) | 2494 | * maybe NULL (then just count headers) |
2495 | * @param iterator_cls extra argument to @a iterator | 2495 | * @param iterator_cls extra argument to @a iterator |
2496 | * @return number of entries iterated over | 2496 | * @return number of entries iterated over, |
2497 | * -1 if connection is NULL. | ||
2497 | * @ingroup request | 2498 | * @ingroup request |
2498 | */ | 2499 | */ |
2499 | _MHD_EXTERN int | 2500 | _MHD_EXTERN int |
@@ -2504,6 +2505,25 @@ MHD_get_connection_values (struct MHD_Connection *connection, | |||
2504 | 2505 | ||
2505 | 2506 | ||
2506 | /** | 2507 | /** |
2508 | * Get all of the headers from the request. | ||
2509 | * | ||
2510 | * @param connection connection to get values from | ||
2511 | * @param kind types of values to iterate over, can be a bitmask | ||
2512 | * @param iterator callback to call on each header; | ||
2513 | * maybe NULL (then just count headers) | ||
2514 | * @param iterator_cls extra argument to @a iterator | ||
2515 | * @return number of entries iterated over, | ||
2516 | * -1 if connection is NULL. | ||
2517 | * @ingroup request | ||
2518 | */ | ||
2519 | _MHD_EXTERN int | ||
2520 | MHD_get_connection_values_n (struct MHD_Connection *connection, | ||
2521 | enum MHD_ValueKind kind, | ||
2522 | MHD_KeyValueIteratorN iterator, | ||
2523 | void *iterator_cls); | ||
2524 | |||
2525 | |||
2526 | /** | ||
2507 | * This function can be used to add an entry to the HTTP headers of a | 2527 | * This function can be used to add an entry to the HTTP headers of a |
2508 | * connection (so that the #MHD_get_connection_values function will | 2528 | * connection (so that the #MHD_get_connection_values function will |
2509 | * return them -- and the `struct MHD_PostProcessor` will also see | 2529 | * return them -- and the `struct MHD_PostProcessor` will also see |