Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
HttpParser.hpp File Reference
#include <orbit/legacy_namespaces.hpp>
#include <orbit/http/HttpRequest.hpp>
#include <optional>
#include <string_view>
Include dependency graph for HttpParser.hpp:

Go to the source code of this file.

Classes

class  orbit::http::HttpParser
 Utility class for parsing HTTP requests and related components. More...
 

Namespaces

namespace  orbit
 
namespace  orbit::http
 

Functions

bool orbit::http::connection_option_present (std::string_view field_value, std::string_view option)
 Tests whether a Connection header field carries a given option.
 
bool orbit::http::percent_decode (std::string_view in, std::string &out, bool plus_as_space, bool for_path)
 Decodes XX escapes (RFC 3986 section 2.1).
 
bool orbit::http::parse_urlencoded (std::string_view data, std::unordered_map< std::string, std::string > &out)
 Decodes application/x-www-form-urlencoded data: a query string or a form body (WHATWG URL Standard section 5.1).
 
void orbit::http::parse_cookie_header (std::string_view cookie_header, std::unordered_map< std::string, std::string > &out)