refactor
This commit is contained in:
parent
add21a5608
commit
f4251fcc97
@ -50,10 +50,10 @@ using list_objects_result = std::vector<directory_item>;
|
|||||||
|
|
||||||
struct head_object_result {
|
struct head_object_result {
|
||||||
std::uint64_t content_length{};
|
std::uint64_t content_length{};
|
||||||
std::string content_type{};
|
std::string content_type;
|
||||||
std::uint64_t last_modified{};
|
std::uint64_t last_modified;
|
||||||
|
|
||||||
inline auto from_headers(http_headers headers) -> head_object_result & {
|
auto from_headers(http_headers headers) -> head_object_result & {
|
||||||
content_length = utils::string::to_uint64(headers["content-length"]);
|
content_length = utils::string::to_uint64(headers["content-length"]);
|
||||||
content_type = headers["content-type"];
|
content_type = headers["content-type"];
|
||||||
auto date = headers["last-modified"];
|
auto date = headers["last-modified"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user