1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

LibCore: Use URL in CHttpRequest

Now there's just CHttpRequest::set_url(URL), no need to specify the
host, port and path manually anymore.

Updated ChanViewer and Downloader for the API change.
This commit is contained in:
Andreas Kling 2019-08-10 19:32:03 +02:00
parent fb636389d6
commit ee83b1bcf4
6 changed files with 11 additions and 19 deletions

View file

@ -19,8 +19,7 @@ BoardListModel::~BoardListModel()
void BoardListModel::update()
{
CHttpRequest request;
request.set_hostname("a.4cdn.org");
request.set_path("/boards.json");
request.set_url("http://a.4cdn.org/boards.json");
auto* job = request.schedule();