mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
RequestServer+LibProtocol: Allow users to specify a per-request proxy
This commit is contained in:
parent
cd9d740107
commit
45867435c4
16 changed files with 52 additions and 24 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <AK/URL.h>
|
||||
#include <LibCore/AnonymousBuffer.h>
|
||||
#include <LibCore/DateTime.h>
|
||||
#include <LibCore/Proxy.h>
|
||||
#include <LibIPC/Dictionary.h>
|
||||
#include <LibIPC/Encoder.h>
|
||||
#include <LibIPC/File.h>
|
||||
|
@ -203,4 +204,12 @@ bool encode(Encoder& encoder, Core::DateTime const& datetime)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool encode(Encoder& encoder, Core::ProxyData const& proxy)
|
||||
{
|
||||
encoder << to_underlying(proxy.type);
|
||||
encoder << proxy.host_ipv4;
|
||||
encoder << proxy.port;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue