aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
Commit message (Collapse)AuthorAge
* internal.h: fixed static function placementEvgeny Grin (Karlson2k)2022-05-06
|
* MHD_get_master(): moved to the header, simplifiedEvgeny Grin (Karlson2k)2022-05-06
| | | | There is no need to support more than one level of 'master' daemon.
* digestauth: use mseconds for timestampEvgeny Grin (Karlson2k)2022-05-04
| | | | The clash of nonces is lower with higher timestamp resolution
* internal.h: fixed doxyEvgeny Grin (Karlson2k)2022-05-04
|
* struct MHD_NonceNc: improved doxyEvgeny Grin (Karlson2k)2022-05-01
|
* MHD_get_daemon_info(): fixed unaligned memory accessEvgeny Grin (Karlson2k)2022-04-25
|
* MHD_get_connection_info(): Fixed possible unaligned accessEvgeny Grin (Karlson2k)2022-04-25
| | | | | | | Also: * Reduced number of 'MHD_Connection' members. * Fixed wrong value of returned timeout on some platforms, if timeout is too large.
* 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.
* refactoring: use 'const' for response buffersEvgeny Grin (Karlson2k)2022-04-18
| | | | The response buffers shouldn't be modifiable.
* MHD_Connection: added 'const' qualifiers to some unmodifiable membersEvgeny Grin (Karlson2k)2022-04-17
|
* 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.
* Added separate internal "responseIcy" flag.Evgeny Grin (Karlson2k)2022-03-10
| | | | | This simplified the code. Also fixed some incorrect responseCode processing without ICY mask.
* response: added automatic flag MHD_RAF_HAS_CONTENT_LENGTHEvgeny Grin (Karlson2k)2022-03-07
|
* Moved mhd_panic() and helpers to separate .c/.h filesEvgeny Grin (Karlson2k)2022-01-25
|
* Doxy corrections, fixes, and syncEvgeny Grin (Karlson2k)2021-12-29
|
* process_request_body(): minor improvement of code readabilityEvgeny Grin (Karlson2k)2021-11-24
|
* Reworking early close flagsEvgeny Grin (Karlson2k)2021-11-21
| | | | | 'early_response' renamed to 'discard_request'. Changed the way how flags are checked.
* Distinguish "early response" from "error response"Evgeny Grin (Karlson2k)2021-10-31
|
* internal.h: clarified doxyEvgeny Grin (Karlson2k)2021-10-26
|
* internal.h: fixed doxy for read bufferEvgeny Grin (Karlson2k)2021-10-17
| | | | | | MHD always zero-terminate by replacing end-of-line chars and never zero-terminate by write char after valid read position. Read buffer is NOT longer. 'read_buffer_offset' actually determines the first INVALID position.
* internal.h: fixed typo in comment, updated copyrightEvgeny Grin (Karlson2k)2021-10-05
|
* Switched internal timers to milliseconds resolutions.Evgeny Grin (Karlson2k)2021-08-30
| | | | | | | | This is needed to handle connection timeouts precisely. * Fixed connections expired "just before or after" required timeout * Fixed busy-waiting with low-resolution system timers when connection is about to timeout. Now low-resolution timers are handled automatically. * Added log message if application tries to set ridiculously large timeout
* Added flag for non-blocking listen socketEvgeny Grin (Karlson2k)2021-08-24
|
* Added new connection state MHD_CONNECTION_START_REPLYEvgeny Grin (Karlson2k)2021-08-23
|
* Added new connection state MHD_CONNECTION_FULL_REQ_RECEIVEDEvgeny Grin (Karlson2k)2021-08-21
| | | | The new state improved readability of the code.
* Added new connection state MHD_CONNECTION_REQ_LINE_RECEIVINGEvgeny Grin (Karlson2k)2021-08-21
| | | | | This allow to distinguish between connections received any data and connections without any incoming data.
* Added new connection flag "stop_with_error".Evgeny Grin (Karlson2k)2021-08-21
| | | | Stopped usage of "read_close" flag when read hasn't been closed.
* enum MHD_CONNECTION_STATE: sorted statesEvgeny Grin (Karlson2k)2021-08-21
|
* enum MHD_CONNECTION_STATE: removed numbers from doxyEvgeny Grin (Karlson2k)2021-08-21
| | | | The numbers were meaningless as states are switched not in order
* Do not use the same flag for chunked request and chunked replyEvgeny Grin (Karlson2k)2021-08-21
|
* keepalive_possible: simplified; added new value for MHD_ConnKeepAliveEvgeny Grin (Karlson2k)2021-08-18
|
* Complete re-write of reply header build function and helpersEvgeny Grin (Karlson2k)2021-08-15
| | | | | | | | | The reply headers build function was re-implemented from scratch. Added some helper functions to simplify maintainability and increase readability. Fixed chunked encoding handling and compliance with RFC. This implementation tries to resemble behavior of previous implementations (except fixes). Some code is marked with TODO to make further improvements.
* internal.h: minor doxy correctionEvgeny Grin (Karlson2k)2021-08-11
|
* 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
* connection cleanup: streamlined cleanup processEvgeny Grin (Karlson2k)2021-07-30
|
* response: process "Connection" header in a special mannerEvgeny Grin (Karlson2k)2021-07-05
|
* Corrected internal doxyEvgeny Grin (Karlson2k)2021-07-05
|
* Added attributes for enumsEvgeny Grin (Karlson2k)2021-06-21
|
* internal.h: reordered itemsEvgeny 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.
* connection.c: added detection of standard HTTP methodsEvgeny Grin (Karlson2k)2021-06-12
| | | | Detection was added only for basic methods as defined in RFC7231
* Corrected naming enum MHD_HTTP_version -> enum MHD_HTTP_VersionEvgeny Grin (Karlson2k)2021-06-12
|
* Code and comments minor fixesEvgeny Grin (Karlson2k)2021-05-30
|
* Added detection of HTTP version during early parsingEvgeny Grin (Karlson2k)2021-05-21
| | | | | Requests with unsupported HTTP versions are rejected as specified by RFC 7230.
* Fixed build with MSVC, fixed compiler warningsEvgeny Grin (Karlson2k)2021-04-23
|
* Added support for ALPN protocols list for TLS connectionsEvgeny Grin (Karlson2k)2021-04-19
|
* Fixes and improvements for 6c751386a2e06d35b6d072c064bd581ddd561c52Evgeny Grin (Karlson2k)2021-04-16
| | | | | Fixed build on platforms without epoll, saved one sys-call for externally added connections.
* fix #6768: do not use TCP-specific syscalls on UNIX domain socketsEvgeny Grin (Karlson2k)2021-04-16
|
* daemon: added user options counterEvgeny Grin (Karlson2k)2021-03-15
|
* -misc style fixes, no semantic changesChristian Grothoff2021-02-26
|