mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 16:55:08 +00:00
LibCore: Move HTTP classes from LibGUI to LibCore.
This commit is contained in:
parent
cfd6e6cc36
commit
ab1c84cf53
15 changed files with 92 additions and 93 deletions
|
@ -1,27 +0,0 @@
|
|||
#include <LibGUI/GNetworkJob.h>
|
||||
#include <LibGUI/GNetworkResponse.h>
|
||||
#include <stdio.h>
|
||||
|
||||
GNetworkJob::GNetworkJob()
|
||||
{
|
||||
}
|
||||
|
||||
GNetworkJob::~GNetworkJob()
|
||||
{
|
||||
}
|
||||
|
||||
void GNetworkJob::did_finish(Retained<GNetworkResponse>&& response)
|
||||
{
|
||||
m_response = move(response);
|
||||
printf("%s{%p} job did_finish!\n", class_name(), this);
|
||||
ASSERT(on_finish);
|
||||
on_finish(true);
|
||||
}
|
||||
|
||||
void GNetworkJob::did_fail(Error error)
|
||||
{
|
||||
m_error = error;
|
||||
dbgprintf("%s{%p} job did_fail! error=%u\n", class_name(), this, (unsigned)error);
|
||||
ASSERT(on_finish);
|
||||
on_finish(false);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue