MySQL 9.3.0
Source Code Documentation
mrs::interface::HttpResult Struct Reference

#include <http_result.h>

Public Types

using Type = helper::MediaType
 
using HttpStatus = int
 

Public Member Functions

 HttpResult ()
 
 HttpResult (std::string &&r)
 
 HttpResult (std::string &&r, Type t, std::string e={})
 
 HttpResult (HttpStatus s, std::string &&r, Type t=Type::typeJson, std::string e={})
 
 HttpResult (const std::string &r, Type t, std::string e={})
 
 HttpResult (std::string &&r, std::string t, std::string e={})
 

Public Attributes

std::string response
 
HttpStatus status
 
Type type {Type::typeJson}
 
std::optional< std::string > type_text
 
std::string etag
 

Member Typedef Documentation

◆ HttpStatus

◆ Type

Constructor & Destructor Documentation

◆ HttpResult() [1/6]

mrs::interface::HttpResult::HttpResult ( )

◆ HttpResult() [2/6]

mrs::interface::HttpResult::HttpResult ( std::string &&  r)

◆ HttpResult() [3/6]

mrs::interface::HttpResult::HttpResult ( std::string &&  r,
Type  t,
std::string  e = {} 
)

◆ HttpResult() [4/6]

mrs::interface::HttpResult::HttpResult ( HttpStatus  s,
std::string &&  r,
Type  t = Type::typeJson,
std::string  e = {} 
)

◆ HttpResult() [5/6]

mrs::interface::HttpResult::HttpResult ( const std::string &  r,
Type  t,
std::string  e = {} 
)

◆ HttpResult() [6/6]

mrs::interface::HttpResult::HttpResult ( std::string &&  r,
std::string  t,
std::string  e = {} 
)

Member Data Documentation

◆ etag

std::string mrs::interface::HttpResult::etag

◆ response

std::string mrs::interface::HttpResult::response

◆ status

HttpStatus mrs::interface::HttpResult::status

◆ type

Type mrs::interface::HttpResult::type {Type::typeJson}

◆ type_text

std::optional<std::string> mrs::interface::HttpResult::type_text

The documentation for this struct was generated from the following files: