aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/include
Commit message (Collapse)AuthorAgeFilesLines
* moved source directories into `/src` (#264)Stefan Boberg2023-05-026-983/+0
| | | | | | * moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees
* fixed dashboard file serving bug (#255)Stefan Boberg2023-04-241-0/+2
| | | | | a recent change which introduced support for specifying accept: implicitly via the file extension in the URI caused fallout in the dashboard which would fail to serve any content because the extension was stripped from the RelativeUri accessor. This change fixes that by retaining a copy of the Uri string view which includes the suffix additionally, in order to test this change with both asio/http.sys paths I made the path used for all tests configurable in zenserver-test which involved pulling in a change from sb/proto which makes testing configuration a bit more flexible
* Support for HTTP range header (#245)Per Larsson2023-04-192-0/+11
| | | | | | | | | | | * Support for HTTP range header. * Implement http range for HTTP sys. * Validate range parameters. --------- Co-authored-by: Stefan Boberg <[email protected]>
* send payloads as duplicated handles (#240)Dan Engelbrecht2023-03-141-6/+7
| | | | | | | | | * send payloads as duplicated handles if requestor provides process id and allows local file references. * linux/macos fixes * tests * fix access rights when duplicating handle * fix closing of duplicated handles on error * cleanup * changelog
* Support file reference in package message (#184)Dan Engelbrecht2022-11-071-2/+11
| | | | | | | | * Fix packed message parsing for absolute path * Always enable are sharing when opening files as IoBuffers. * Allow control over sending partial files as localfile ref * Check "AcceptFlags" field in RPC message for allowing localfile ref in reply * make oplog entry add operations ZEN_DEBUG level logs * changelog
* Format all rpc package responses using `FormatPackageMessageBuffer` to avoid ↵Dan Engelbrecht2022-09-291-0/+2
| | | | | memory copy (#174) When reading upstream, fall back to old rpc response to handle older instances.
* cbpackage: added initial support for marshaling of attachment by local referenceStefan Boberg2022-06-101-8/+54
| | | | this mode allows local clients to avoid unnecessary copying of data from zen and instead reference data directly
* Helper function for sending compact binary array HTTP response.Per Larsson2022-03-231-0/+1
|
* Missing return statement in websocket.hDan Engelbrecht2022-03-191-1/+1
|
* Added websocket stream request/response handling.Per Larsson2022-03-191-6/+38
|
* Added missing parens around sizeof.Per Larsson2022-02-211-1/+1
|
* Added option to enable websockets.Per Larsson2022-02-211-4/+4
|
* Refactored websocket message.Per Larsson2022-02-211-36/+120
|
* Basic websocket service and test.Per Larsson2022-02-181-3/+52
|
* Web socket client is shared between I/O thead and client.Per Larsson2022-02-181-1/+1
|
* Route websocket message.Per Larsson2022-02-181-4/+8
|
* Simple websocket client/server test.Per Larsson2022-02-181-0/+48
|
* Renamed file.Per Larsson2022-02-161-0/+0
|
* Added websocket message parser.Per Larsson2022-02-161-0/+15
|
* Initial websocket support.Per Larsson2022-02-091-0/+24
|
* Handle HTTP port collisions when initializing server (#40)zousar2022-01-271-1/+1
|
* Merged main.Per Larsson2021-12-143-4/+5
|\
| * Merged mainMartin Ridgers2021-11-291-0/+2
| |\
| * | Fixed unused-variable warningMartin Ridgers2021-10-251-1/+1
| | |
| * | Removed unused includeMartin Ridgers2021-10-251-2/+0
| | |
| * | Use StrCaseCompare() instead of Windows-only _stricmp()Martin Ridgers2021-10-251-1/+1
| | |
* | | Merged main.Per Larsson2021-12-091-0/+2
|\ \ \ | | |/ | |/|
| * | Fix handling of packages/offers in asio mode to match http.sys mode.Zousar Shaker2021-11-251-0/+2
| |/
* / rpc: tactical checkinStefan Boberg2021-11-181-0/+34
|/
* Fixed up some more windows include issuesStefan Boberg2021-10-151-2/+1
|
* zencore: Enabled MSC warning 4668 to get warnings when preprocessor macros ↵Stefan Boberg2021-10-152-7/+10
| | | | | | | | are used without an explicit definition Also fixed up various code to compile with this, by using ZEN_THIRD_PARTY_INCLUDES_START/ZEN_THIRD_PARTY_INCLUDES_END macros Removed prewindows.h/postwindows.h since they are no longer to be used due to the above
* asio HTTP implementation (#23)Stefan Boberg2021-10-141-12/+12
| | | asio-based HTTP implementation
* Support for asynchronous HTTP response processing (#19)Stefan Boberg2021-10-061-0/+2
| | | | | | | | 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]>
* http: ReasonStringForHttpResultCode returns string_view to avoid strlenStefan Boberg2021-09-281-1/+1
|
* Added preliminary CbPackageReader, for handling incremental compact binary ↵Stefan Boberg2021-09-281-2/+53
| | | | package streaming
* Added HttpVerb ToString() function for use in loggingStefan Boberg2021-09-261-0/+2
|
* zenserver can now run as a Windows service. We'll still need to improve how ↵Stefan Boberg2021-09-171-1/+1
| | | | 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
* Const correct.Per Larsson2021-09-171-1/+1
|
* clang-format fixesStefan Boberg2021-09-163-6/+6
|
* Improved package serialization to allow round trippingStefan Boberg2021-09-161-0/+51
|
* Added some placeholder HttpClient functions to be fleshed outStefan Boberg2021-09-151-1/+5
|
* Hooked up zenhttp to the test framework so tests actually run as part of ↵Stefan Boberg2021-09-152-2/+8
| | | | zenserver-test
* Adde reminder that the content type is embedded in the IoBufferStefan Boberg2021-09-151-1/+1
|
* Added support for compressed binary MIME type conversionStefan Boberg2021-09-151-2/+2
|
* Added session id generation and code to include it in HttpClient HTTP requestsStefan Boberg2021-09-151-0/+2
|
* Added client implementation of CbPackage filter/transactStefan Boberg2021-09-131-1/+11
|
* Moved some shared http definitions into httpcommon.hStefan Boberg2021-09-132-160/+173
| | | | Added CompositeBuffer HttpServerRequest::WriteResponse() helper function
* Changed interface for httpServerRequest::SessionId()/RequestId() so they ↵Stefan Boberg2021-09-131-5/+8
| | | | | | | | | | | | | | 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-132-28/+62
| | | | 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-11/+0
|