diff options
Diffstat (limited to 'src/microhttpd/response.h')
-rw-r--r-- | src/microhttpd/response.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/microhttpd/response.h b/src/microhttpd/response.h index 03448e56..52dece93 100644 --- a/src/microhttpd/response.h +++ b/src/microhttpd/response.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libmicrohttpd | 2 | This file is part of libmicrohttpd |
3 | Copyright (C) 2007 Daniel Pittman and Christian Grothoff | 3 | Copyright (C) 2007 Daniel Pittman and Christian Grothoff |
4 | Copyright (C) 2015-2021 Karlson2k (Evgeny Grin) | ||
4 | 5 | ||
5 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public | 7 | modify it under the terms of the GNU Lesser General Public |
@@ -22,6 +23,7 @@ | |||
22 | * @brief Methods for managing response objects | 23 | * @brief Methods for managing response objects |
23 | * @author Daniel Pittman | 24 | * @author Daniel Pittman |
24 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
26 | * @author Karlson2k (Evgeny Grin) | ||
25 | */ | 27 | */ |
26 | 28 | ||
27 | #ifndef RESPONSE_H | 29 | #ifndef RESPONSE_H |
@@ -54,4 +56,21 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response, | |||
54 | struct MHD_Connection *connection); | 56 | struct MHD_Connection *connection); |
55 | 57 | ||
56 | 58 | ||
59 | /** | ||
60 | * Get a particular header (or footer) element from the response. | ||
61 | * | ||
62 | * Function returns the first found element. | ||
63 | * @param response response to query | ||
64 | * @param kind the kind of element: header or footer | ||
65 | * @param key the key which header to get | ||
66 | * @param key_len the length of the @a key | ||
67 | * @return NULL if header elemnt does not exist | ||
68 | * @ingroup response | ||
69 | */ | ||
70 | struct MHD_HTTP_Header * | ||
71 | MHD_get_response_element_n_ (struct MHD_Response *response, | ||
72 | enum MHD_ValueKind kind, | ||
73 | const char *key, | ||
74 | size_t key_len); | ||
75 | |||
57 | #endif | 76 | #endif |