mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
This makes XHR now rely on Fetch, which allows it to correct send Origin and Referer headers, CORS-preflight and filtering and many other goodies. The main thing that's missing is Streams, which means we can't properly produce progress events or switch to the Loading ready state. This also doesn't implement the Document responseType just yet.
18 lines
377 B
C++
18 lines
377 B
C++
/*
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/ByteBuffer.h>
|
|
|
|
namespace Web::Infra {
|
|
|
|
void byte_lowercase(ByteBuffer&);
|
|
void byte_uppercase(ByteBuffer&);
|
|
bool is_prefix_of(ReadonlyBytes potential_prefix, ReadonlyBytes input);
|
|
bool is_byte_less_than(ReadonlyBytes a, ReadonlyBytes b);
|
|
|
|
}
|