Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-23 | AK: Fix URL::complete_url behaviour for when a fragment is passed | FalseHonesty | |
Previously, passing a fragment string ("#section3") to the complete_url method would result in a URL that looked like "file:///home/anon/www/#section3" which was obviously incorrect. Now the result looks like "file:///home/anon/www/afrag.html#section3". | |||
2020-05-17 | AK: Make sure URL retains trailing slash if present in complete_url | Conrad Pankoff | |
2020-05-17 | AK: Set default port in URL to 1965 for gemini protocol | Conrad Pankoff | |
2020-05-16 | AK: Handle "protocol relative URLs" in URL::complete_url() | Linus Groh | |
2020-05-10 | AK: Add support for about: URLs | Andreas Kling | |
2020-05-09 | AK: Unbreak parsing of file:// URLs with no host | Andreas Kling | |
We should still accept file:/// in the URL parser. :^) | |||
2020-05-09 | AK: Allow file:// URLs to have a hostname | Andreas Kling | |
2020-05-05 | AK: Add URL::basename() | Andreas Kling | |
2020-04-26 | AK: Make URL::to_string() produce a data URL for data URLs :^) | Andreas Kling | |
2020-04-26 | AK: Teach URL how to parse data: URLs :^) | Andreas Kling | |
2020-04-19 | AK: Add URL::create_with_url_or_path() | Sergey Bugaev | |
This is an utility to create a URL from a given string, which may be either a URL such as http://example.com (which will be used as-is), or a file path such as /etc/fstab (which will be transformed into file:///etc/fstab). | |||
2020-04-19 | AK: Consider more URLs invalid | Sergey Bugaev | |
Not just http or https. This fixes "foo" being recognized as a valid URL with protocol "foo", empty host and empty path. | |||
2020-04-18 | AK: Add URL::create_with_file_protocol(path) | Andreas Kling | |
This is a convenience helper that allows you to easily construct a file:// URL from an absolute path. | |||
2020-04-12 | AK: Parse query and fragment in URL::parse() | Linus Groh | |
2020-04-12 | AK: Support fragment in URL | Linus Groh | |
2020-04-11 | AK: Recompute URL validity after changing protocol/host/path | Andreas Kling | |
This allows you to build URLs by calling setters on an empty URL and actually get a valid URL at the end. | |||
2020-02-25 | AK: Make Vector use size_t for its size and capacity | Andreas Kling | |
2020-01-18 | Meta: Add license header to source files | Andreas Kling | |
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header. | |||
2019-12-10 | AK: Teach URL::complete_url() how to resolve URL's starting with "/" | Andreas Kling | |
2019-12-09 | AK: Use size_t for the length of strings | Andreas Kling | |
Using int was a mistake. This patch changes String, StringImpl, StringView and StringBuilder to use size_t instead of int for lengths. Obviously a lot of code needs to change as a result of this. | |||
2019-11-25 | AK: Add a query string component to URL | Andreas Kling | |
It's missing query string parsing from new URLs, but you can set the query string programmatically, and it will be part of the URL when serialized through to_string(). | |||
2019-11-19 | LibHTML+AK: Move URL completion from Document to AK::URL | Andreas Kling | |
Completing a relative URL based on a base URL seems like generally useful functionality. | |||
2019-10-21 | URL: https:// URLs should default to port 443 | Andreas Kling | |
2019-10-17 | URL: Parse URLs that lack a path (e.g "http://serenityos.org") | Andreas Kling | |
2019-10-10 | URL: No need to include ":80" when serializing http:// URLs | Andreas Kling | |
2019-10-05 | AK: URL should support file:// URL's | Andreas Kling | |
Also add some setters since this class was very setter-less. | |||
2019-08-10 | AK: Add a basic URL class to help us handle URL's | Andreas Kling | |
We're gonna need these as we start to write more networking programs. |