Ada 3.1.0
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
implementation.h File Reference

Definitions for user facing functions for parsing URL and it's components. More...

#include <string>
#include <string_view>
#include <optional>
#include "ada/url.h"
#include "ada/common_defs.h"
#include "ada/errors.h"
#include "ada/url_pattern_init.h"

Go to the source code of this file.

Namespaces

namespace  ada
 

Typedefs

template<class result_type = ada::url_aggregator>
using ada::result = tl::expected<result_type, ada::errors>
 

Functions

template<class result_type = ada::url_aggregator>
ada_warn_unused ada::result< result_type > ada::parse (std::string_view input, const result_type *base_url=nullptr)
 
template ada::result< urlada::parse< url > (std::string_view input, const url *base_url)
 
template ada::result< url_aggregatorada::parse< url_aggregator > (std::string_view input, const url_aggregator *base_url)
 
bool ada::can_parse (std::string_view input, const std::string_view *base_input=nullptr)
 
template<url_pattern_regex::regex_concept regex_provider>
ada_warn_unused tl::expected< url_pattern< regex_provider >, errorsada::parse_url_pattern (std::variant< std::string_view, url_pattern_init > input, const std::string_view *base_url, const url_pattern_options *options)
 
std::string ada::href_from_file (std::string_view path)
 

Detailed Description

Definitions for user facing functions for parsing URL and it's components.

Definition in file implementation.h.