| 322 | |
| 323 | |
| 324 | Future<http::Response> Master::QuotaHandler::status( |
| 325 | const mesos::master::Call& call, |
| 326 | const Option<Principal>& principal, |
| 327 | ContentType contentType) const |
| 328 | { |
| 329 | CHECK_EQ(mesos::master::Call::GET_QUOTA, call.type()); |
| 330 | |
| 331 | return _status(principal) |
| 332 | .then([contentType](const QuotaStatus& status) -> Future<http::Response> { |
| 333 | mesos::master::Response response; |
| 334 | response.set_type(mesos::master::Response::GET_QUOTA); |
| 335 | response.mutable_get_quota()->mutable_status()->CopyFrom(status); |
| 336 | |
| 337 | return OK(serialize(contentType, evolve(response)), |
| 338 | stringify(contentType)); |
| 339 | }); |
| 340 | } |
| 341 | |
| 342 | |
| 343 | Future<http::Response> Master::QuotaHandler::status( |
no test coverage detected