aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-3/+1
|
* Merged main.Per Larsson2021-12-141-3/+3
|\
| * Merged mainMartin Ridgers2021-12-081-28/+60
| |\
| * \ Merged mainMartin Ridgers2021-11-291-75/+4
| |\ \
| * \ \ Merged mainMartin Ridgers2021-10-201-2/+10
| |\ \ \
| * \ \ \ Merged mainMartin Ridgers2021-10-151-3/+8
| |\ \ \ \
| * | | | | Fixed httpsys.cpp WideToUtf8() link errorsMartin Ridgers2021-10-131-3/+3
| | | | | |
* | | | | | Format fix.Per Larsson2021-12-091-1/+1
| |_|_|_|/ |/| | | |
* | | | | Address review feedback and fix issue when deploying.Zousar Shaker2021-11-291-1/+1
| | | | |
* | | | | Allow http.sys mode to operate in local-only mode for non-admin users.Zousar Shaker2021-11-291-28/+60
| |_|_|/ |/| | |
* | | | Fix handling of packages/offers in asio mode to match http.sys mode.Zousar Shaker2021-11-251-75/+4
| |_|/ |/| |
* | | httpsys: Added automatic translation of 200 OK -> 204 NO CONTENT for case ↵Stefan Boberg2021-10-181-2/+10
| |/ |/| | | | | where there is no body (upset some clients)
* | clang-formatStefan Boberg2021-10-151-2/+1
| |
* | asio HTTP implementation (#23)Stefan Boberg2021-10-141-3/+9
|/ | | asio-based HTTP implementation
* Added lofreq timer update to httpsys main loopStefan Boberg2021-10-111-0/+2
|
* Support for asynchronous HTTP response processing (#19)Stefan Boberg2021-10-061-52/+196
| | | | | | | | This change introduces WriteResponseAsync which can be used to move potentially slow request handler code (like upstream lookups) off the I/O service thread to ensure we are always able to serve as many HTTP requests as possible. The current implementation defaults to 16 async worker threads and there is currently no back-pressure. - Added RequestStats - Metrics for network requests. Aggregates tracking of duration, payload sizes into a single class for ease of use - Added some metrics on upstream communication Co-authored-by: Per Larsson <[email protected]>
* Merged from upstreamStefan Boberg2021-10-051-9/+14
|
* http: Moved logic for body suppression to a more central locationStefan Boberg2021-10-031-0/+5
| | | | this should prevent some mistake-induced bugs hopefully
* http: Added support for specifying response content-type by means of ↵Stefan Boberg2021-10-031-3/+34
| | | | | | suffixes (.json/.yaml etc) If a suffix is present then we'll use that instead of any Accept: header value
* http: ReasonStringForHttpResultCode returns string_view to avoid strlenStefan Boberg2021-09-281-54/+51
|
* clang-formatStefan Boberg2021-09-271-3/+3
|
* httpsys: Added HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA to response calls which ↵Stefan Boberg2021-09-271-17/+33
| | | | | | should improve overall performance (yet to be confirmed) Also added custom Server: header
* httpsys: added `if constexpr` to silence compiler warning on WindowsStefan Boberg2021-09-271-1/+1
|
* Merged latest from mainStefan Boberg2021-09-271-3/+19
|\
| * GetWindowsErrorAsString() -> GetSystemErrorAsString()Stefan Boberg2021-09-271-2/+2
| |
| * httpsys: Some logging improvementsStefan Boberg2021-09-261-1/+14
| |
| * Added some more context to http failure loggingStefan Boberg2021-09-261-1/+4
| |
* | Fixed httpsys Windows compilation errorStefan Boberg2021-09-271-1/+1
| |
* | Merge mainMartin Ridgers2021-09-221-2/+2
|\|
| * Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2021-09-211-1/+1
| |\
| | * Clang format fix.Per Larsson2021-09-211-1/+1
| | |
| * | Added human-friendly formatting of response send errorsStefan Boberg2021-09-211-1/+1
| |/
* | Merged main into linux-macMartin Ridgers2021-09-211-18/+18
|\|
| * Improved error handling in http.sys handlerStefan Boberg2021-09-201-7/+6
| | | | | | | | Alsod fixed lifetime issue with initial request
| * clang-format againStefan Boberg2021-09-191-1/+1
| |
| * zenserver can now run as a Windows service. We'll still need to improve how ↵Stefan Boberg2021-09-171-11/+12
| | | | | | | | data files are found as the current defaults are relative to the user directory which ends up being in the Windows folder when running as the local system user
* | Merge main into linux-macMartin Ridgers2021-09-161-2/+1
|\|
| * Improved package serialization to allow round trippingStefan Boberg2021-09-161-2/+1
| |
* | Merge from mainMartin Ridgers2021-09-161-12/+18
|\|
| * Added some more trace-level loggingStefan Boberg2021-09-151-1/+7
| |
| * Made logging macros always append `sv` string_view literal suffixStefan Boberg2021-09-151-11/+11
| | | | | | | | Fixed up the few instances of explicit string_view arguments to make sure they compile properly with the new macros
| * Fixed up invalid fmt formatting stringsStefan Boberg2021-09-151-5/+5
| |
* | MakeWin32ErrorCode() -> MakeErrorCode()Martin Ridgers2021-09-161-2/+2
| |
* | GetWindowsErrorAsString() -> GetErrorAsString()Martin Ridgers2021-09-161-1/+1
|/
* Changed logging implementationStefan Boberg2021-09-151-23/+23
| | | | | | * Code should no longer directly `#include spdlog/spdlog.h`, instead use `#include <zencore/logging.h>` * Instead of explicit calls to `spdlog::info(...)` and such please use the logging macros defined in `zencore/logging.h`. I.e `ZEN_INFO`, `ZEN_DEBUG`, `ZEN_TRACE`, `ZEN_ERROR`, `ZEN_CRITITCAL` * The macros will pick up the "most local" logger via a `Log()` call to retrieve a logger instance. To override the default logger in a class please implement your own `Log()` function
* Implemented intended package streaming API flow (but currently it "streams" ↵Stefan Boberg2021-09-131-4/+12
| | | | from memory)
* Changed package parsing test codeStefan Boberg2021-09-131-3/+3
|
* Changed interface for httpServerRequest::SessionId()/RequestId() so they ↵Stefan Boberg2021-09-131-54/+85
| | | | | | | | | | | | | | share storage and lazy eval logic They now call into ParseSessionId()/ParseRequestId() when required Eliminates redundant logic in derived implementations Also moved package transport code into httpshared.(cpp|h) for easier sharing with client code Added some I/O error reporting in http.sys related code Changed IHttpPackageHandler interface to support partially updated handling flow
* Implemented generic CbPackage attachments filteringStefan Boberg2021-09-131-233/+173
| | | | Package transmission will also need to be updated (up next) for the new scheme to be effective
* Eliminated HttpServerException and related classesStefan Boberg2021-09-121-10/+0
|