Move more internal URL stuff to RAII.

This commit is contained in:
2025-04-13 00:31:27 -04:00
parent a189fff1ad
commit 4005fa7e14
2 changed files with 54 additions and 63 deletions

View File

@ -18,6 +18,7 @@
extern "C++"
{
#include <string>
#include <optional>
}
@ -93,7 +94,7 @@ extern "C" {
#endif /* __cplusplus */
struct DilloUrl {
Dstr *url_string;
std::optional< std::string > url_string;
const char *buffer;
const char *scheme; /**/
const char *authority; /**/