MCPcopy Create free account
hub / github.com/apache/arrow / ContentTypeSetter

Method ContentTypeSetter

cpp/src/arrow/filesystem/s3fs.cc:1417–1422  ·  view source on GitHub ↗

We need a special setter here and can not use `StringSetter` because for e.g. the * `PutObjectRequest`, the setter is located in the base class (instead of the concrete * class). */

Source from the content-addressed store, hash-verified

1415 * `PutObjectRequest`, the setter is located in the base class (instead of the concrete
1416 * class). */
1417 static Setter ContentTypeSetter() {
1418 return [](const std::string& str, ObjectRequest* req) {
1419 req->SetContentType(str);
1420 return Status::OK();
1421 };
1422 }
1423
1424 static Result<S3Model::ObjectCannedACL> ParseACL(const std::string& v) {
1425 if (v.empty()) {

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected