FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
url.hpp File Reference

Minimal URL parsing / query building for venue endpoints. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <optional>
#include <span>
#include <string_view>

Go to the source code of this file.

Classes

struct  fastmm::net::Url
 
class  fastmm::net::QueryBuilder< Capacity >
 Builds "k1=v1\&k2=v2" into a fixed buffer, percent-encoding values. More...
 

Namespaces

namespace  fastmm
 
namespace  fastmm::net
 

Functions

constexpr bool fastmm::net::is_url_unreserved (char c) noexcept
 RFC 3986 unreserved characters pass through; everything else becomes %XX.
 
std::size_t fastmm::net::percent_encode (std::string_view in, std::span< char > out) noexcept
 Returns bytes written, or 0 if out is too small (worst case 3 * in.size()).
 

Detailed Description

Minimal URL parsing / query building for venue endpoints.

No heap allocation in QueryBuilder; Url::parse works on string_views into the input.