NoSniffBlocking.h 461 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. ErrorOr<bool> determine_nosniff(HeaderList const&);
  12. ErrorOr<RequestOrResponseBlocking> should_response_to_request_be_blocked_due_to_nosniff(Response const&, Request const&);
  13. }