diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-03 16:48:57 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-03 16:48:57 +0300 |
commit | cc5032b85365e567f02650f13ea6ad9a5bb5fef7 (patch) | |
tree | e84702ea064930c68d992292baa2444b6cc3e7cd /src/include | |
parent | 7e4885da25b58455452cd6dbcd167f761e3ff38e (diff) | |
download | libmicrohttpd-cc5032b85365e567f02650f13ea6ad9a5bb5fef7.tar.gz libmicrohttpd-cc5032b85365e567f02650f13ea6ad9a5bb5fef7.zip |
Added MHD_lookup_connection_value_n().
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/microhttpd.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 6617dd98..3dbda318 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -128,7 +128,7 @@ typedef intptr_t ssize_t; | |||
128 | * Current version of the library. | 128 | * Current version of the library. |
129 | * 0x01093001 = 1.9.30-1. | 129 | * 0x01093001 = 1.9.30-1. |
130 | */ | 130 | */ |
131 | #define MHD_VERSION 0x00096303 | 131 | #define MHD_VERSION 0x00096304 |
132 | 132 | ||
133 | /** | 133 | /** |
134 | * MHD-internal return code for "YES". | 134 | * MHD-internal return code for "YES". |
@@ -2620,6 +2620,35 @@ MHD_lookup_connection_value (struct MHD_Connection *connection, | |||
2620 | 2620 | ||
2621 | 2621 | ||
2622 | /** | 2622 | /** |
2623 | * Get a particular header value. If multiple | ||
2624 | * values match the kind, return any one of them. | ||
2625 | * @note Since MHD_VERSION 0x00096304 | ||
2626 | * | ||
2627 | * @param connection connection to get values from | ||
2628 | * @param kind what kind of value are we looking for | ||
2629 | * @param key the header to look for, NULL to lookup 'trailing' value without a key | ||
2630 | * @param key_size the length of @a key in bytes | ||
2631 | * @param[out] value_ptr the pointer to variable, which will be set to found value, | ||
2632 | * will not be updated if key not found, | ||
2633 | * could be NULL to just check for presence of @a key | ||
2634 | * @param[out] value_size_ptr the pointer variable, which will set to found value, | ||
2635 | * will not be updated if key not found, | ||
2636 | * could be NULL | ||
2637 | * @param key_size the length of @a key in bytes | ||
2638 | * @return #MHD_YES if key is found, | ||
2639 | * #MHD_NO otherwise. | ||
2640 | * @ingroup request | ||
2641 | */ | ||
2642 | _MHD_EXTERN int | ||
2643 | MHD_lookup_connection_value_n (struct MHD_Connection *connection, | ||
2644 | enum MHD_ValueKind kind, | ||
2645 | const char *key, | ||
2646 | size_t key_size, | ||
2647 | const char **value, | ||
2648 | size_t *value_size); | ||
2649 | |||
2650 | |||
2651 | /** | ||
2623 | * Queue a response to be transmitted to the client (as soon as | 2652 | * Queue a response to be transmitted to the client (as soon as |
2624 | * possible but after #MHD_AccessHandlerCallback returns). | 2653 | * possible but after #MHD_AccessHandlerCallback returns). |
2625 | * | 2654 | * |