PortBlocking.h 396 B

123456789101112131415161718
  1. /*
  2. * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
  9. #include <LibWeb/Forward.h>
  10. namespace Web::Fetch::Infrastructure {
  11. [[nodiscard]] RequestOrResponseBlocking block_bad_port(Request const&);
  12. [[nodiscard]] bool is_bad_port(u16);
  13. }