Lines Matching refs:Response
134 std::unique_ptr<HttpClient::Response> response, ErrorPtr error) {
142 << " status:" << response->GetStatusCode();
143 VLOG(2) << "Response data: " << response->GetData();
144 callback.Run(std::move(response), nullptr);
191 const HttpClient::Response& response,
196 SplitAtFirst(response.GetContentType(), ";", true).first;
201 "Unexpected content type: \'" + response.GetContentType() + "\'");
204 const std::string& json = response.GetData();
217 "Response is not a valid JSON object: '%s'",
227 bool IsSuccessful(const HttpClient::Response& response) {
228 int code = response.GetStatusCode();
338 DeviceRegistrationInfo::ParseOAuthResponse(const HttpClient::Response& response,
340 int code = response.GetStatusCode();
341 auto resp = ParseJsonResponse(response, error);
393 std::unique_ptr<HttpClient::Response> response,
402 auto json = ParseOAuthResponse(*response, &error);
547 std::unique_ptr<provider::HttpClient::Response> response,
551 auto json_resp = ParseJsonResponse(*response, &error);
555 if (!IsSuccessful(*response)) {
570 std::unique_ptr<provider::HttpClient::Response> response,
574 auto json_resp = ParseJsonResponse(*response, &error);
577 if (!IsSuccessful(*response)) {
591 "Device account missing in response");
614 std::unique_ptr<provider::HttpClient::Response> response,
618 auto json_resp = ParseOAuthResponse(*response, &error);
626 "Device access_token missing in response");
696 std::unique_ptr<provider::HttpClient::Response> response,
700 int status_code = response->GetStatusCode();
717 if (response->GetContentType().empty()) {
723 auto json_resp = ParseJsonResponse(*response, &error);
729 if (!IsSuccessful(*response)) {
1042 VLOG(2) << "No commands in the response.";