diff options
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index d09de610..f77ebd10 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -276,6 +276,11 @@ struct MHD_HTTP_Header | |||
276 | char *value; | 276 | char *value; |
277 | 277 | ||
278 | /** | 278 | /** |
279 | * Number of bytes in @a value. | ||
280 | */ | ||
281 | size_t value_size; | ||
282 | |||
283 | /** | ||
279 | * Type of the header (where in the HTTP protocol is this header | 284 | * Type of the header (where in the HTTP protocol is this header |
280 | * from). | 285 | * from). |
281 | */ | 286 | */ |
@@ -1881,7 +1886,8 @@ MHD_unescape_plus (char *arg); | |||
1881 | * | 1886 | * |
1882 | * @param connection context of the iteration | 1887 | * @param connection context of the iteration |
1883 | * @param key 0-terminated key string, never NULL | 1888 | * @param key 0-terminated key string, never NULL |
1884 | * @param value 0-terminated value string, may be NULL | 1889 | * @param value 0-terminated binary data, may include binary zeros, may be NULL |
1890 | * @param value_size number of bytes in value | ||
1885 | * @param kind origin of the key-value pair | 1891 | * @param kind origin of the key-value pair |
1886 | * @return #MHD_YES on success (continue to iterate) | 1892 | * @return #MHD_YES on success (continue to iterate) |
1887 | * #MHD_NO to signal failure (and abort iteration) | 1893 | * #MHD_NO to signal failure (and abort iteration) |
@@ -1890,6 +1896,7 @@ typedef int | |||
1890 | (*MHD_ArgumentIterator_)(struct MHD_Connection *connection, | 1896 | (*MHD_ArgumentIterator_)(struct MHD_Connection *connection, |
1891 | const char *key, | 1897 | const char *key, |
1892 | const char *value, | 1898 | const char *value, |
1899 | size_t value_size, | ||
1893 | enum MHD_ValueKind kind); | 1900 | enum MHD_ValueKind kind); |
1894 | 1901 | ||
1895 | 1902 | ||