mirror of
https://github.com/matrix-construct/construct
synced 2024-11-04 21:08:57 +01:00
ircd::http: Minor definition section labels.
This commit is contained in:
parent
5e35e0593a
commit
d4d121f6c3
1 changed files with 8 additions and 0 deletions
|
@ -746,6 +746,10 @@ ircd::http::throw_error(const qi::expectation_failure<const char *> &e,
|
|||
};
|
||||
}
|
||||
|
||||
//
|
||||
// error
|
||||
//
|
||||
|
||||
ircd::http::error::error(const http::code &code,
|
||||
std::string content,
|
||||
const vector_view<const header> &headers)
|
||||
|
@ -767,6 +771,10 @@ ircd::http::error::error(const http::code &code,
|
|||
snprintf(buf, sizeof(buf), "%u %s", uint(code), status(code).c_str());
|
||||
}
|
||||
|
||||
//
|
||||
// status
|
||||
//
|
||||
|
||||
ircd::http::code
|
||||
ircd::http::status(const string_view &str)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue