about summary refs log tree commit diff stats
path: root/src/io
Commit message (Collapse)AuthorAgeFilesLines
* Simplify request.json, remove unused bindingsbptato2023-06-091-13/+4
|
* Show error messages, fix some fetch crashesbptato2023-06-092-0/+9
|
* Remove JSObject again, add File API constructorbptato2023-06-081-4/+6
|
* Fix bug in client's unregistered fd handlingbptato2023-06-061-0/+2
| | | | + run JS jobs after every poll in headless mode
* buffer: call handleError before handleRead & miscbptato2023-06-051-1/+1
|
* Refactor Request constructorbptato2023-06-051-22/+33
|
* Add support for canvas and multipartbptato2023-06-052-39/+32
| | | | | | | | | | | | | | | 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-215-33/+116
| | | | | 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
|
* Name negative response codesbptato2023-05-141-4/+12
|
* Async resource loading, exception handling fixesbptato2023-05-142-1/+23
|
* Fix some fetch crashesbptato2023-05-112-13/+15
| | | | Now it should work for very basic use-cases
* Improve debugging, reduce crashesbptato2023-05-092-5/+15
| | | | Loader no longer dies when not everything is read from the stream.
* Actually set proxybptato2023-04-301-1/+1
|
* only call Response.unregisterFun if not nilbptato2023-04-301-2/+4
|
* Temporarily disable multipartbptato2023-04-302-5/+5
| | | | It never really worked, and I can't be bothered to fix it now
* Make it compilebptato2023-04-301-0/+1
|
* Merge branch 'wip_fetch'bptato2023-04-302-25/+101
|\
| * WIP fetchbptato2023-04-302-25/+101
| |
* | Add initial proxy supportbptato2023-04-302-3/+10
| | | | | | | | For now, API-only.
* | loader: remove unused importbptato2023-04-301-1/+0
|/
* Loader: use curl_multibptato2023-04-282-108/+195
| | | | | Note: for now it's only used for http requests. The doRequest API still needs an async rework.
* Slightly improve request api (less crashes)bptato2023-02-052-5/+7
|
* io/window: use all available columnsbptato2023-01-081-5/+7
| | | | should always work now
* promise: set get, cb, next to nil after then is calledbptato2023-01-041-7/+5
| | | | | | Actually we don't even need a state variable, just set cb to nil when resolving. (I'm sure this is a great idea that will absolutely not backfire in the future.)
* loader: proper redirect handlingbptato2023-01-012-3/+16
|
* posixstream: fix incorrect read() usagebptato2023-01-011-1/+1
| | | | It was overwriting our buffer, instead of appending to it...
* posixstream/socketstream: fix cross-platform compilationbptato2022-12-311-8/+17
|
* Add promise support to JSbptato2022-12-312-2/+109
|
* Only set Location for redirect status codesbptato2022-12-301-2/+3
|
* Add about:blankbptato2022-12-301-1/+6
|
* Add unicode normalization, etcbptato2022-12-191-54/+28
|
* lineedit: fix crash in prevHist/nextHistbptato2022-12-191-0/+3
|
* File browser: sort filesbptato2022-12-191-1/+20
|
* Add file browserbptato2022-12-182-25/+75
|
* Add JS support to documentsbptato2022-12-181-22/+59
|
* Update visual home page, use name consistentlybptato2022-12-161-3/+3
|
* Make load() slightly less dumbbptato2022-12-151-2/+6
| | | | | This gets rid of the inefficient timeout thing. Still, the ideal solution would be to move the timeout into the container; TODO.
* Add referer support, re-render on windowChangebptato2022-12-133-20/+22
|
* Fix stream error handling confusion, title displaybptato2022-12-134-15/+28
| | | | Also probably other fixes.
* Add more cookie optionsbptato2022-12-132-10/+27
|
* Add all sorts of config options and cookiesbptato2022-12-132-23/+27
|
* Add urlfilterbptato2022-12-122-5/+30
|
* Fix blocking socketstream recv/send, clean up ips/serialize & types/colorbptato2022-12-101-1/+1
| | | | Write always blocks for now, as it's too big of a footgun not to
* Add support for the encoding standard, fix parseLegacyColorbptato2022-12-102-0/+84
| | | | Also, fix a bug in the
* Optimize sendCursorPosition/updateHover, close streams after loadResourcebptato2022-12-061-0/+2
|
* Add -M, -Vbptato2022-12-052-0/+26
|
* Add siteconf, fix lineedit bugsbptato2022-11-291-3/+5
| | | | | | This enables rule-based dynamic url rewriting. Also, lineedit is a bit less broken now (though it's still less than ideal.)
* Add line editing history, other lineedit fixesbptato2022-11-291-83/+112
| | | | It's still kind of broken...
* Add textareabptato2022-11-282-468/+1
| | | | Editing is implemented using an external editor (like vi).