Ada 2.9.2
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 <optional>
#include "ada/parser.h"
#include "ada/common_defs.h"
#include "ada/encoding_type.h"
#include "ada/url.h"
#include "ada/state.h"
#include "ada/url_aggregator.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>
 

Enumerations

enum class  ada::errors { ada::generic_error }
 

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)
 
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.