| 1378 | using Setter = std::function<Status(const std::string& value, ObjectRequest* req)>; |
| 1379 | |
| 1380 | static std::unordered_map<std::string, Setter> GetSetters() { |
| 1381 | return {{"ACL", CannedACLSetter()}, |
| 1382 | {"Cache-Control", StringSetter(&ObjectRequest::SetCacheControl)}, |
| 1383 | {"Content-Encoding", StringSetter(&ObjectRequest::SetContentEncoding)}, |
| 1384 | {"Content-Type", ContentTypeSetter()}, |
| 1385 | {"Content-Language", StringSetter(&ObjectRequest::SetContentLanguage)}, |
| 1386 | {"Expires", DateTimeSetter(&ObjectRequest::SetExpires)}}; |
| 1387 | } |
| 1388 | |
| 1389 | private: |
| 1390 | static Setter StringSetter(void (ObjectRequest::*req_method)(Aws::String&&)) { |
nothing calls this directly
no outgoing calls
no test coverage detected