blob: ba075c326256208315699f1f1714efc449b905c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <mbgl/storage/response.hpp>
namespace mbgl {
Response::Response(const Response& res) {
*this = res;
}
Response& Response::operator=(const Response& res) {
error = res.error ? std::make_unique<Error>(*res.error) : nullptr;
noContent = res.noContent;
notModified = res.notModified;
mustRevalidate = res.mustRevalidate;
data = res.data;
modified = res.modified;
expires = res.expires;
etag = res.etag;
return *this;
}
Response::Error::Error(Reason reason_, std::string message_, optional<Timestamp> retryAfter_)
: reason(reason_), message(std::move(message_)), retryAfter(std::move(retryAfter_)) {
}
} // namespace mbgl
|