1
Fork 0
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:
Linus Groh 2022-10-13 18:30:15 +02:00
parent 7fd4c7b0c6
commit 62228f0870
4 changed files with 156 additions and 0 deletions

View file

@ -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);
}