Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
http_problem.h
1#ifndef SOURCEMETA_CORE_HTTP_PROBLEM_H_
2#define SOURCEMETA_CORE_HTTP_PROBLEM_H_
3
4#ifndef SOURCEMETA_CORE_HTTP_EXPORT
5#include <sourcemeta/core/http_export.h>
6#endif
7
8#include <sourcemeta/core/http_status.h>
9#include <sourcemeta/core/json.h>
10
11namespace sourcemeta::core {
12
27
43SOURCEMETA_CORE_HTTP_EXPORT
46
47} // namespace sourcemeta::core
48
49#endif
JSON::StringView title
The short human-readable summary of the problem type.
Definition http_problem.h:21
JSON::StringView type
The identifier for the problem type.
Definition http_problem.h:19
HTTPStatus status
The HTTP status code for this occurrence of the problem.
Definition http_problem.h:17
JSON::StringView detail
The human-readable explanation specific to this occurrence.
Definition http_problem.h:23
JSON::StringView instance
The identifier for this specific occurrence of the problem.
Definition http_problem.h:25
SOURCEMETA_CORE_HTTP_EXPORT auto http_make_problem_details(const HTTPProblemDetails &problem) -> sourcemeta::core::JSON
Definition http_problem.h:15
Definition http_status.h:20
std::basic_string_view< Char, CharTraits > StringView
The string view type used by the JSON document.
Definition json_value.h:54
Definition json_value.h:39