0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +01:00

fixup! fixup! ircd::json/modules: Rename various types.

This commit is contained in:
Jason Volk 2017-08-23 15:48:28 -06:00
parent dbbd72fe75
commit 1cb5433fce

View file

@ -242,7 +242,7 @@ catch(const std::bad_function_call &e)
ircd::resource::request::request(const http::request::head &head, ircd::resource::request::request(const http::request::head &head,
http::request::content &content, http::request::content &content,
http::query::string query) http::query::string query)
:json::doc{content} :json::object{content}
,head{head} ,head{head}
,content{content} ,content{content}
,query{std::move(query)} ,query{std::move(query)}
@ -251,19 +251,19 @@ ircd::resource::request::request(const http::request::head &head,
ircd::resource::response::response(client &client, ircd::resource::response::response(client &client,
const http::code &code, const http::code &code,
const json::obj &obj) const json::index &idx)
:response{client, obj, code} :response{client, idx, code}
{ {
} }
ircd::resource::response::response(client &client, ircd::resource::response::response(client &client,
const json::obj &obj, const json::index &index,
const http::code &code) const http::code &code)
try try
{ {
char cbuf[4096], *out(cbuf); char cbuf[8192], *out(cbuf);
const auto doc(serialize(obj, out, cbuf + sizeof(cbuf))); const auto object(serialize(index, out, cbuf + sizeof(cbuf)));
response(client, doc, code); response(client, object, code);
} }
catch(const json::error &e) catch(const json::error &e)
{ {
@ -274,7 +274,7 @@ catch(const json::error &e)
} }
ircd::resource::response::response(client &client, ircd::resource::response::response(client &client,
const json::doc &doc, const json::object &object,
const http::code &code) const http::code &code)
{ {
const auto content_type const auto content_type
@ -282,7 +282,7 @@ ircd::resource::response::response(client &client,
"application/json; charset=utf-8" "application/json; charset=utf-8"
}; };
response(client, doc, content_type, code); response(client, object, content_type, code);
} }
ircd::resource::response::response(client &client, ircd::resource::response::response(client &client,