about summary refs log tree commit diff stats
path: root/src/io/request.nim
Commit message (Collapse)AuthorAgeFilesLines
* move around more modulesbptato2023-09-141-332/+0
| | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/
* remove obsolete commentbptato2023-09-091-1/+0
|
* fetch: use JSDictbptato2023-09-091-22/+85
|
* javascript: factor out fromJSbptato2023-08-291-0/+1
|
* javascript: refactorbptato2023-08-281-1/+2
| | | | | | | Split out parts of the JS module, because it was starting to confuse the compiler a little. (Peakmem is back at 750M. Interesting.)
* Add mailcap, mime.types & misc refactoringsbptato2023-08-131-2/+5
| | | | | | | | * add mailcap: works with copiousoutput, needsterminal, etc. * add mime.types (only works with mailcap) * refactor pipeBuffer * remove "dispatcher" * fix bug in directory display where baseurl would not be used
* Add platform object conversion to union typebptato2023-07-021-17/+43
| | | | And with that, implement Request constructor with a Request init.
* return Result[T, JSError] from fromJSbptato2023-07-021-6/+6
|
* Factor out headers into separate modulebptato2023-07-011-58/+1
|
* use =destroy instead of finalizersbptato2023-07-011-0/+3
| | | | | This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.)
* Get rid of the .jserr pragmabptato2023-06-191-10/+8
|
* Rework JS exception systembptato2023-06-191-8/+8
| | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma.
* Cleanups & bug fixes involving promisesbptato2023-06-151-46/+5
| | | | | Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray.
* Make Result.text, json return promisebptato2023-06-131-10/+9
|
* Add indexed color, other png improvementsbptato2023-06-091-1/+1
|
* Simplify request.json, remove unused bindingsbptato2023-06-091-13/+4
|
* Show error messages, fix some fetch crashesbptato2023-06-091-0/+2
|
* Remove JSObject again, add File API constructorbptato2023-06-081-4/+6
|
* Refactor Request constructorbptato2023-06-051-22/+33
|
* Add support for canvas and multipartbptato2023-06-051-31/+22
| | | | | | | | | | | | | | | Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...)
* Rewrite new Request bindingbptato2023-05-211-24/+107
| | | | | Still far from perfect, but now at least it has a bit more to do with what the standard mandates.
* Add url getter to requestbptato2023-05-201-2/+9
|
* Fix some fetch crashesbptato2023-05-111-12/+10
| | | | Now it should work for very basic use-cases
* Actually set proxybptato2023-04-301-1/+1
|
* only call Response.unregisterFun if not nilbptato2023-04-301-2/+4
|
* Temporarily disable multipartbptato2023-04-301-4/+4
| | | | It never really worked, and I can't be bothered to fix it now
* Merge branch 'wip_fetch'bptato2023-04-301-2/+25
|\
| * WIP fetchbptato2023-04-301-2/+25
| |
* | Add initial proxy supportbptato2023-04-301-3/+7
|/ | | | For now, API-only.
* loader: proper redirect handlingbptato2023-01-011-1/+1
|
* Add promise support to JSbptato2022-12-311-2/+2
|
* Add JS support to documentsbptato2022-12-181-22/+59
|
* Add referer support, re-render on windowChangebptato2022-12-131-0/+1
|
* Add all sorts of config options and cookiesbptato2022-12-131-22/+21
|
* Binding & macro refactoringsbptato2022-10-011-1/+5
|
* More JS bindingsbptato2022-09-131-12/+38
|
* Use unix domain sockets for IPCbptato2022-09-061-47/+52
|
* Add a network stream wrapper, improve eprintbptato2022-09-051-1/+59
|
* Small refactoringbptato2022-08-201-6/+0
|
* Fix request error handlingbptato2022-08-181-0/+1
|
* Clean up client request methods, add DUPE_BUFFERbptato2022-08-181-12/+1
|
* Use a separate process for file loadingbptato2022-08-181-0/+109
Not very useful for now, since we still have to load the entire page before parsing it.