aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
Commit message (Collapse)AuthorAge
* Internal refactoring: moved all request-related members to separate structureEvgeny Grin (Karlson2k)2022-08-06
| | | | This should improve readability of the code and simplify reset.
* MHD_add_response_entry(): refactoring + added internal functionEvgeny Grin (Karlson2k)2022-07-28
|
* Fixed function name introduced by 3eb2fb6dfb302a7ffbc74174d37fa047e3a94036Evgeny Grin (Karlson2k)2022-06-13
| | | | Thanks Christian for spotting it.
* Fixed very rare data races when closing upgraded connectionEvgeny Grin (Karlson2k)2022-06-08
|
* response.c: better handle broken situationEvgeny Grin (Karlson2k)2022-05-29
|
* Added missing in 'switch' enum values (no functional change)Evgeny Grin (Karlson2k)2022-05-16
|
* MHD_create_response_empty(): fixed typoEvgeny Grin (Karlson2k)2022-05-14
|
* Fixed additional compiler warnings on W32Evgeny Grin (Karlson2k)2022-05-14
|
* MHD_create_response_from_buffer_copy(): fixed doxyEvgeny Grin (Karlson2k)2022-05-14
|
* response: fixed copy-paste error introduced by ↵Evgeny Grin (Karlson2k)2022-04-28
| | | | b8e13a57a0035f1f416d593d64115bd4417c2028
* Fixes related to implicit cast warningsEvgeny Grin (Karlson2k)2022-04-27
|
* Fixed compiler warnings of implicit casting, which could change the valueEvgeny Grin (Karlson2k)2022-04-27
|
* Added new API function MHD_create_response_from_buffer_copy()Evgeny Grin (Karlson2k)2022-04-19
|
* Added workaround for external APIsEvgeny Grin (Karlson2k)2022-04-19
| | | | | | Some APIs require non-const pointer even when data is supposed to be unmodifiable. Added workaround to deal with such APIs without compiler warnings.
* Fixed missing 'const' qualifiersEvgeny Grin (Karlson2k)2022-04-19
|
* Added new API function MHD_create_response_from_buffer_static()Evgeny Grin (Karlson2k)2022-04-19
|
* Refactored create response functions.Evgeny Grin (Karlson2k)2022-04-18
| | | | Moved away from the deprecated function, shortened typical call chain.
* Added _MHD_EXTERN to the all public functions definitionsEvgeny Grin (Karlson2k)2022-04-18
| | | | | Previously it was inconsistent, some function definitions used _MHD_EXTERN, while other definitions was used without _MHD_EXTERN.
* refactoring: use 'const' for response buffersEvgeny Grin (Karlson2k)2022-04-18
| | | | The response buffers shouldn't be modifiable.
* Refactoring: different types for response and request headersEvgeny Grin (Karlson2k)2022-04-17
| | | | | Request headers are always read-only (const char *), while response headers are modifiable. Should help with catching errors in code.
* MHD_create_response_empty(): added new functionEvgeny Grin (Karlson2k)2022-03-19
|
* MHD_create_response_from_iovec(): fixed formattingEvgeny Grin (Karlson2k)2022-03-19
|
* Updated doxy for some of the MHD_create_response_*() functionsEvgeny Grin (Karlson2k)2022-03-18
|
* Added MHD_RF_HEAD_ONLY_RESPONSE response flagEvgeny Grin (Karlson2k)2022-03-17
| | | | | Useful if application needs to send reply for HEAD request, but creation of full reply body is costly.
* Disallowed MHD_SIZE_UNKNOWN for buffer-based responsesEvgeny Grin (Karlson2k)2022-03-14
|
* MHD_set_response_options(): check whether the new flags could be usedEvgeny Grin (Karlson2k)2022-03-13
|
* upgrade response: set response size to zeroEvgeny Grin (Karlson2k)2022-03-08
| | | | Upgrade responses do not have body, so zero must be used as the body size.
* response.c: fixed coding styleEvgeny Grin (Karlson2k)2022-03-07
|
* response: added automatic flag MHD_RAF_HAS_CONTENT_LENGTHEvgeny Grin (Karlson2k)2022-03-07
|
* Improved doxy for MHD_add_response_header()Evgeny Grin (Karlson2k)2021-10-30
|
* MHD_del_response_header(): documented new behaviorsEvgeny Grin (Karlson2k)2021-10-16
|
* Improved and fixed doxy for MHD_add_response_header()Evgeny Grin (Karlson2k)2021-09-26
|
* Fixed analyzer errors: cast enum values to enum types.Evgeny Grin (Karlson2k)2021-09-07
| | | | | | | | | | | | | | | | | | enum values in C are not enum types, they are just numbers. By default numbers are mapped to signed type, like 'int'. enum types are represented with usigned types, like 'unsigned int', unless values of enum contains negative numbers. If bitwise NOT performed on pure enum value, which is automatically mapped to 'int', then result is negative number. Result of casting of negative number to unsigned type depends on architecture and may be unexpected. By explicitly casting enum values to enum types, values are converted to correct representation type, like 'unsgined int'. Result of bitwise NOT for unsigned type is predictable and does not need to be casted to the final type. Yes, casting of enum values to the same enum type looks strange, but this is the only way to properly handle bitwise NOT for enums in C.
* Fixed memory leak introduced by 39eb60df61232bfc7da8e2f7afc48efcad0f1019Evgeny Grin (Karlson2k)2021-08-16
| | | | When "Date:" header is replaced with new value, old value wasn't freed
* response.c: used stricter check for "Upgrade:" headerEvgeny Grin (Karlson2k)2021-08-11
|
* response headers: do not allow "Close" with upgrade responsesEvgeny Grin (Karlson2k)2021-08-11
|
* response headers: disallow space in header name, allow tab in header valueEvgeny Grin (Karlson2k)2021-08-01
|
* response header: more pre-processing, better docsEvgeny Grin (Karlson2k)2021-08-01
| | | | | * Disallow "Transfer-encoding: identity", not allowed by RFC * Allow only single "Date" header
* response: do not allow "Connection: keep-alive" headerEvgeny Grin (Karlson2k)2021-08-01
|
* Updated some copyrightsEvgeny Grin (Karlson2k)2021-07-30
|
* response: use macro instead of string for connection headerEvgeny Grin (Karlson2k)2021-07-28
|
* response: use auto flag for chunked encoding headerEvgeny Grin (Karlson2k)2021-07-28
|
* -fix typoChristian Grothoff2021-07-18
|
* response: process "Connection" header in a special mannerEvgeny Grin (Karlson2k)2021-07-05
|
* MHD_del_response_header(): removed unused variableEvgeny Grin (Karlson2k)2021-07-05
|
* MHD_add_response_header(): improved doxyEvgeny Grin (Karlson2k)2021-06-20
|
* response: added MHD_get_response_element_n() functionEvgeny Grin (Karlson2k)2021-06-20
|
* Response: fixed order of the headersEvgeny Grin (Karlson2k)2021-06-20
| | | | | | Fixed reversed order of headers in the response. Is was commented the order of headers should be reversed before sending response, but it was never implemented before.
* MHD_add_response_header: added detailed comment about automatic headersEvgeny Grin (Karlson2k)2021-06-13
| | | | | | Automatic header handling was not documented, while this mechanism is important for MHD functionality and the absence of this description resulted in wrong assumptions made by users.
* MHD_create_response_*() functions: improved doxyEvgeny Grin (Karlson2k)2021-06-13
| | | | | | * Clearer description of how buffer/FD/ other is used * Sync .c/.h doxy * Clarification for HEAD requests answering