mirror of https://github.com/adamdruppe/arsd.git
more docs
This commit is contained in:
parent
42a8876a04
commit
46f1100c63
30
README.md
30
README.md
|
@ -16,9 +16,37 @@ This only lists changes that broke things and got a major version bump. I didn't
|
|||
|
||||
Please note that I DO consider changes to build process to be a breaking change, but I do NOT consider symbol additions, changes to undocumented members, or the occasional non-fatal deprecation to be breaking changes. Undocumented members may be changed at any time, whereas additions and/or deprecations will be a minor version change.
|
||||
|
||||
## 12.0
|
||||
|
||||
Future release, 2024 or later.
|
||||
|
||||
I will probably drop the existing support for gdc 6.
|
||||
|
||||
## 11.0
|
||||
|
||||
Released: Planned for 2023
|
||||
|
||||
arsd.core was added, causing a general build system break for users who download individual files:
|
||||
|
||||
simpledisplay.d used to depend only on color.d. It now also depends on core.d.
|
||||
|
||||
terminal.d and http2.d used to be stand-along. They now depend on core.d.
|
||||
|
||||
minigui.d now also depends on a new textlayouter.d, bringing its total dependencies from minigui.d, simpledisplay.d, color.d up to minigui.d, simpledisplay.d, color.d, core.d, and textlayouter.d
|
||||
|
||||
Generally speaking, I am relaxing my dependency policy somewhat to permit a little more code sharing and interoperability throughout the modules. While I will make efforts to maintain some degree of stand-alone functionality, many new features and even some old features may be changed to use the new module. As such, I reserve to right to use core.d from any module from this point forward. You should be prepared to add it to your builds using any arsd component.
|
||||
|
||||
I recommend you clone the repo and use `dmd -i` to let the compiler automatically included imported modules. It really is quite nice to use! But, of course, I don't require it and will call out other required cross-module dependencies in the future too.
|
||||
|
||||
Also:
|
||||
|
||||
* dom.d's XmlDocument no longer treats `<script>` and `<style>` tags as CDATA; that was meant to be a html-specific behavior, not applicable to generic xml.
|
||||
* game.d had significant changes, making the Game object be a manager of GameScreen objects, which use delta time interpolated renders and fixed time updates (before it was vice versa).
|
||||
* database.d got its first overhaul in a decade.
|
||||
|
||||
## 10.0
|
||||
|
||||
Released: May 2020
|
||||
Released: May 2021
|
||||
|
||||
minigui 2.0 came out with deprecations on some event properties, moved style properties, and various other changes. See http://arsd-official.dpldocs.info/arsd.minigui.html#history for details.
|
||||
|
||||
|
|
21
cgi.d
21
cgi.d
|
@ -2753,6 +2753,23 @@ class Cgi {
|
|||
version(preserveData) // note: this can eat lots of memory; don't use unless you're sure you need it.
|
||||
immutable(ubyte)[] originalPostData;
|
||||
|
||||
/++
|
||||
This holds the posted body data if it has not been parsed into [post] and [postArray].
|
||||
|
||||
It is intended to be used for JSON and XML request content types, but also may be used
|
||||
for other content types your application can handle. But it will NOT be populated
|
||||
for content types application/x-www-form-urlencoded or multipart/form-data, since those are
|
||||
parsed into the post and postArray members.
|
||||
|
||||
Remember that anything beyond your `maxContentLength` param when setting up [GenericMain], etc.,
|
||||
will be discarded to the client with an error. This helps keep this array from being exploded in size
|
||||
and consuming all your server's memory (though it may still be possible to eat excess ram from a concurrent
|
||||
client in certain build modes.)
|
||||
|
||||
History:
|
||||
Added January 5, 2021
|
||||
Documented February 21, 2023 (dub v11.0)
|
||||
+/
|
||||
public immutable string postBody;
|
||||
alias postJson = postBody; // old name
|
||||
|
||||
|
@ -4385,6 +4402,8 @@ string defaultListeningHost() {
|
|||
/++
|
||||
This is the function [GenericMain] calls. View its source for some simple boilerplate you can copy/paste and modify, or you can call it yourself from your `main`.
|
||||
|
||||
Please note that this may spawn other helper processes that will call `main` again. It does this currently for the timer server and event source server (and the quasi-deprecated web socket server).
|
||||
|
||||
Params:
|
||||
fun = Your request handler
|
||||
CustomCgi = a subclass of Cgi, if you wise to customize it further
|
||||
|
@ -4392,7 +4411,7 @@ string defaultListeningHost() {
|
|||
args = command-line arguments
|
||||
|
||||
History:
|
||||
Documented Sept 26, 2020.
|
||||
Documented Sept 26, 2020.
|
||||
+/
|
||||
void cgiMainImpl(alias fun, CustomCgi = Cgi, long maxContentLength = defaultMaxContentLength)(string[] args) if(is(CustomCgi : Cgi)) {
|
||||
if(tryAddonServers(args))
|
||||
|
|
Loading…
Reference in New Issue