AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AUrl Class Reference

Uniform Resource Locator implementation. More...

Detailed Description

Uniform Resource Locator implementation.

Handles standard web url (schema://host:port/path).

Empty schema is mapped to the assets file. In example, ":icon.svg" references to icon.svg file in your assets. See aui_compile_assets() and examples of asset usage.

Public Types

using Resolver = std::function< _unique< IInputStream >(const AUrl &)>
 

Public Member Functions

 AUrl (AString full)
 
 AUrl (const char *full)
 
 AUrl (AString schema, AString path)
 
_unique< IInputStreamopen () const
 
const AStringpath () const noexcept
 
const AStringschema () const noexcept
 
AString full () const
 
bool operator< (const AUrl &u) const
 

Static Public Member Functions

static AUrl file (const AString &file)
 
static void registerResolver (const AString &protocol, Resolver resolver)
 

#include <AUI/Url/AUrl.h>


The documentation for this class was generated from the following files: