about summary refs log tree commit diff stats
path: root/src/bindings/curl.nim
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing spacesbptato2023-10-231-80/+80
|
* ftp, file: better dirlist, fix FTP path issuebptato2023-09-191-1/+1
| | | | | | | | | * Dirlist is now unified across ftp and file loaders. It's basically a copycat of w3m's FTP dirlist, because I like how it looks. * We now hack around the cURL FTP path problem by always prepending a slash to the path. This is probably closer aligned with expectations than the default behavior.
* loader: add FTP supportbptato2023-09-191-0/+8
| | | | | | | | | | | | works, sort of still needs some work: * better dirlist, ideally make it look like file dirlist (or make file look like ftp dirlist. well, anyway, they should look the same) * absolute paths? (for now you have to append an extra slash to the path beginning) * ssh keys for sftp? (actually I haven't even tested sftp yet...)
* Allow overriding libcurl namebptato2023-08-261-3/+9
| | | | for better compatibility with curl-impersonate
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-011-0/+2
| | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.)
* Show error messages, fix some fetch crashesbptato2023-06-091-0/+1
|
* Add support for canvas and multipartbptato2023-06-051-1/+1
| | | | | | | | | | | | | | | 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...)
* Add initial proxy supportbptato2023-04-301-0/+1
| | | | For now, API-only.
* Loader: use curl_multibptato2023-04-281-1/+61
| | | | | Note: for now it's only used for http requests. The doRequest API still needs an async rework.
* Binding & macro refactoringsbptato2022-10-011-21/+42
|
* Use unix domain sockets for IPCbptato2022-09-061-0/+4
|
* Implement HTTP Authbptato2022-07-301-1/+22
| | | | | Also use our own redirection implementation instead of curl follow redirects.
* Remove unmaintained networking callsbptato2022-07-241-1/+1
|
* Link to libcurlbptato2022-07-241-0/+219