MySQL 9.3.0
Source Code Documentation
handler.cc File Reference

Classes

class  mrs::rest::RestRequestHandler
 
class  mrs::rest::ParseOptions
 

Namespaces

namespace  mrs
 
namespace  mrs::rest
 
namespace  mrs::rest::anonymous_namespace{handler.cc}
 
namespace  mrs::rest::cvt
 

Typedefs

using mrs::rest::RestError = mrs::interface::RestError
 
using mrs::rest::ETagMismatch = mrs::interface::ETagMismatch
 
using mrs::rest::AuthHandler = mrs::interface::AuthorizeManager::AuthorizeHandlerPtr
 
using mrs::rest::AuthHandlers = mrs::interface::AuthorizeManager::AuthHandlers
 
using mrs::rest::WwwAuthenticationHandler = mrs::authentication::WwwAuthenticationHandler
 
using mrs::rest::Parameters = mrs::interface::RestHandler::Parameters
 
using mrs::rest::HttpHeaders = ::http::base::Headers
 
using mrs::rest::HttpBuffer = ::http::base::IOBuffer
 
using mrs::rest::HttpRequest = ::http::base::Request
 
using mrs::rest::ApplyToV3 = mrs::database::entry::AuthPrivilege::ApplyToV3
 
using mrs::rest::ApplyToV4 = mrs::database::entry::AuthPrivilege::ApplyToV4
 

Functions

bool mrs::rest::anonymous_namespace{handler.cc}::_match_glob (const std::string &pat, size_t ppos, const std::string &str, size_t spos)
 
bool mrs::rest::anonymous_namespace{handler.cc}::match_glob (const std::string &pattern, const std::string &s)
 Match a string against a glob-like pattern. More...
 
template<typename T >
std::string mrs::rest::to_string (const std::optional< T > &v)
 
static bool mrs::rest::check_privileges_v3 (const ApplyToV3 &p, const UniversalId &service_id, const UniversalId &schema_id, const UniversalId &db_object_id)
 
static bool mrs::rest::check_privileges_v4 (const ApplyToV4 &p, const std::string &service_path, const std::string &schema_path, const std::string &db_object_path)
 
uint32_t mrs::rest::do_privilege_check (const std::vector< database::entry::AuthPrivilege > &privileges, const UniversalId &service_id, const std::string &service_path, const UniversalId &schema_id, const std::string &schema_path, const UniversalId &db_object_id, const std::string &db_object_path)
 
uint32_t mrs::rest::get_access_right_from_http_method (const uint32_t method)
 
static const char * mrs::rest::get_content_type (const Handler::HttpResult::Type type, const std::optional< std::string > &type_text)
 
std::string mrs::rest::get_http_method_name (HttpMethod::key_type type)
 
const std::string & mrs::rest::cvt::to_string (const std::string &str)
 
static const char * mrs::rest::to_cstr (const bool b)
 
template<typename ValueType , bool default_value = false>
bool mrs::rest::to_bool (const ValueType &value)
 
template<typename ValueType >
uint64_t mrs::rest::to_uint (const ValueType &value)
 
template<typename ValueType >
double mrs::rest::to_double (const ValueType &value)
 
mrs::interface::Options mrs::rest::parse_json_options (const std::optional< std::string > &options)