mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibWeb: Implement 'Should request be blocked due to a bad port' AO
This commit is contained in:
parent
7fd4c7b0c6
commit
62228f0870
4 changed files with 156 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
[[nodiscard]] RequestOrResponseBlocking block_bad_port(Request const&);
|
||||
[[nodiscard]] bool is_bad_port(u16);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue