1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00
serenity/Userland/Libraries/LibWeb/Loader
Max Wipfli ce6d6706a6 LibWeb: Use Optional<String> for encoding_from_content_type
This patch changes the encoding_from_content_type function to only
return an encoding if it actually finds one, and leave it up to the
caller to decided on a default to use.

It also modifies the caller to expect an Optional<String> (instead of
relying on the null state of the String class) as a return value and
separates the encoding and MIME type determination. This will be built
upon in a further commit.
2021-05-18 21:02:07 +02:00
..
ContentFilter.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ContentFilter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CSSLoader.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CSSLoader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FrameLoader.cpp LibWeb: Add a maximum redirects limit to FrameLoader 2021-05-11 21:41:48 +01:00
FrameLoader.h LibWeb: Add a maximum redirects limit to FrameLoader 2021-05-11 21:41:48 +01:00
ImageLoader.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ImageLoader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ImageResource.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ImageResource.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LoadRequest.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LoadRequest.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Resource.cpp LibWeb: Use Optional<String> for encoding_from_content_type 2021-05-18 21:02:07 +02:00
Resource.h AK+Userland: Remove nullability feature for the ByteBuffer type 2021-05-16 17:49:42 +02:00
ResourceLoader.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
ResourceLoader.h Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00