about summary refs log tree commit diff stats
path: root/adapter/protocol/data.nim
Commit message (Collapse)AuthorAgeFilesLines
* loader: move back data URL handlingbptato2024-08-031-32/+0
| | | | | | | data URIs can get megabytes long; however, you can only stuff so many bytes into the envp. (This was thwarting my efforts to view pandoc- generated standalone HTML in Chawan.) So put `data:' back into the loader process.
* data: replace std/base64 with atobbptato2024-04-251-5/+5
| | | | | | | | | | std's version is known to be broken on versions we still support, and it makes no sense to use different decoders anyway. (This does introduce a bit of a dependency hell, because js/base64 depends on js/javascript which tries to bring in the entire QuickJS runtime. So we move that out into twtstr, and manually convert a Result[string, string] to DOMException in js/base64.)
* data: content type fixesbptato2024-03-151-7/+5
| | | | | | | * do not skip first 5 chars (this is legacy from when we used query strings) * allow practically anything but control chars (so we can use parameters)
* Fix compilation on Nim 1.6.14bptato2023-12-161-1/+4
|
* Move http out of main binarybptato2023-12-131-2/+4
| | | | | | | | | | | | Now it is (technically) no longer mandatory to link to libcurl. Also, Chawan is at last completely protocol and network backend agnostic :) * Implement multipart requests in local CGI * Implement simultaneous download of CGI data * Add REQUEST_HEADERS env var with all headers * cssparser: add a missing check in consumeEscape
* adapter/: re-structurebptato2023-12-121-0/+29