Home
last modified time | relevance | path

Searched refs:HttpError (Results 1 – 25 of 39) sorted by relevance

12

/external/webrtc/webrtc/base/
Dhttpbase.h36 HttpError* error);
38 void complete(HttpError err);
43 ProcessResult ProcessLine(const char* line, size_t len, HttpError* error);
47 HttpError* error) = 0;
50 HttpError* error) = 0;
52 HttpError* error) = 0;
54 HttpError* error) = 0;
55 virtual void OnComplete(HttpError err) = 0;
76 virtual HttpError onHttpHeaderComplete(bool chunked, size_t& data_size) = 0;
77 virtual void onHttpComplete(HttpMode mode, HttpError err) = 0;
[all …]
Dhttpclient.h54 typedef HttpError HttpErrorType;
141 HttpError WriteCacheHeaders(const std::string& id);
145 HttpError ReadCacheHeaders(const std::string& id, bool override);
146 HttpError ReadCacheBody(const std::string& id);
149 HttpError CompleteValidate();
151 HttpError OnHeaderAvailable(bool ignore_data, bool chunked, size_t data_size);
157 HttpError onHttpHeaderComplete(bool chunked, size_t& data_size) override;
158 void onHttpComplete(HttpMode mode, HttpError err) override;
159 void onHttpClosed(HttpError err) override;
Dhttpbase.cc61 HttpError* error) { in Process()
125 HttpParser::ProcessLine(const char* line, size_t len, HttpError* error) { in ProcessLine()
221 HttpParser::complete(HttpError error) { in complete()
286 HttpError http_error; in Read()
344 HttpBase* Disconnect(HttpError error) { in Disconnect()
356 HttpError error_;
463 HttpBase::abort(HttpError err) { in abort()
479 HttpError HttpBase::HandleStreamClose(int error) { in HandleStreamClose()
498 bool HttpBase::DoReceiveLoop(HttpError* error) { in DoReceiveLoop()
582 HttpError error; in read_and_process_data()
[all …]
Dhttpclient.cc487 HttpError HttpClient::WriteCacheHeaders(const std::string& id) { in WriteCacheHeaders()
529 HttpError error = ReadCacheHeaders(id, true); in CheckCache()
565 HttpError HttpClient::ReadCacheHeaders(const std::string& id, bool override) { in ReadCacheHeaders()
583 HttpError HttpClient::ReadCacheBody(const std::string& id) { in ReadCacheBody()
586 HttpError error = HE_NONE; in ReadCacheBody()
635 HttpError HttpClient::CompleteValidate() { in CompleteValidate()
641 HttpError error = ReadCacheHeaders(id, false); in CompleteValidate()
653 HttpError HttpClient::OnHeaderAvailable(bool ignore_data, bool chunked, in OnHeaderAvailable()
674 HttpError HttpClient::onHttpHeaderComplete(bool chunked, size_t& data_size) { in onHttpHeaderComplete()
697 HttpError error = OnHeaderAvailable(base_.ignore_data(), chunked, data_size); in onHttpHeaderComplete()
[all …]
Dhttpserver.h92 HttpError onHttpHeaderComplete(bool chunked, size_t& data_size) override;
93 void onHttpComplete(HttpMode mode, HttpError err) override;
94 void onHttpClosed(HttpError err) override;
Dhttpcommon.h67 enum HttpError { enum
122 inline HttpError mkerr(HttpError err, HttpError def_err = HE_DEFAULT) {
379 virtual HttpError parseLeader(const char* line, size_t len) = 0;
400 HttpError parseLeader(const char* line, size_t len) override;
424 HttpError parseLeader(const char* line, size_t len) override;
Dhttpbase_unittest.cc55 HttpError err;
66 virtual HttpError onHttpHeaderComplete(bool chunked, size_t& data_size) { in onHttpHeaderComplete()
75 virtual void onHttpComplete(HttpMode mode, HttpError err) { in onHttpComplete()
80 virtual void onHttpClosed(HttpError err) { in onHttpClosed()
102 void VerifyTransferComplete(HttpMode mode, HttpError error);
294 void HttpBaseTest::VerifyTransferComplete(HttpMode mode, HttpError error) { in VerifyTransferComplete()
Dhttpserver.cc176 HttpError
191 HttpServer::Connection::onHttpComplete(HttpMode mode, HttpError err) { in onHttpComplete()
224 HttpServer::Connection::onHttpClosed(HttpError err) { in onHttpClosed()
/external/python/apitools/apitools/base/py/
Dexceptions_test.py32 err = exceptions.HttpError.FromResponse(_MakeResponse(400))
33 self.assertIsInstance(err, exceptions.HttpError)
38 err = exceptions.HttpError.FromResponse(_MakeResponse(401))
39 self.assertIsInstance(err, exceptions.HttpError)
44 err = exceptions.HttpError.FromResponse(_MakeResponse(403))
45 self.assertIsInstance(err, exceptions.HttpError)
50 err = exceptions.HttpError.FromResponse(_MakeResponse(403))
56 err = exceptions.HttpError.FromResponse(_MakeResponse(404))
57 self.assertIsInstance(err, exceptions.HttpError)
62 err = exceptions.HttpError.FromResponse(_MakeResponse(409))
[all …]
Dexceptions.py50 class HttpError(CommunicationError): class
56 error_message = HttpError._build_message(response, content, url)
57 super(HttpError, self).__init__(error_message)
65 return HttpError._build_message(self.response, self.content, self.url)
91 class HttpBadRequestError(HttpError):
95 class HttpUnauthorizedError(HttpError):
99 class HttpForbiddenError(HttpError):
103 class HttpNotFoundError(HttpError):
107 class HttpConflictError(HttpError):
180 class RetryAfterError(HttpError):
[all …]
/external/python/google-api-python-client/tests/
Dtest_errors.py28 from googleapiclient.errors import HttpError
64 error = HttpError(resp, content, uri='http://example.org')
72 error = HttpError(resp, content)
80 error = HttpError(resp, content, uri='http://example.org')
88 error = HttpError(resp, content)
94 error = HttpError(resp, content)
100 error = HttpError(resp, content)
Dtest_mocks.py29 from googleapiclient.errors import HttpError
144 except HttpError as e:
Dtest_json_model.py35 from googleapiclient.errors import HttpError
173 except HttpError as e:
181 except HttpError as e:
Dtest_http.py46 from googleapiclient.errors import HttpError
427 with self.assertRaises(HttpError):
531 except HttpError:
990 with self.assertRaises(HttpError):
1013 with self.assertRaises(HttpError):
1036 with self.assertRaises(HttpError):
1059 with self.assertRaises(HttpError):
1082 with self.assertRaises(HttpError):
1541 self.assertRaises(HttpError, request.execute)
/external/grpc-grpc/tools/gcp/utils/
Dbig_query_utils.py22 from apiclient.errors import HttpError
51 except HttpError as http_error:
126 except HttpError as http_error:
158 except HttpError as http_error:
177 except HttpError as http_error:
191 except HttpError as http_error:
/external/protobuf/benchmarks/util/
Dbig_query_utils.py10 from apiclient.errors import HttpError
39 except HttpError as http_error:
114 except HttpError as http_error:
146 except HttpError as http_error:
165 except HttpError as http_error:
179 except HttpError as http_error:
/external/python/google-api-python-client/googleapiclient/
Derrors.py34 class HttpError(Error): class
110 class ResumableUploadError(HttpError):
123 class BatchError(HttpError):
Dmodel.py34 from googleapiclient.errors import HttpError
219 raise HttpError(resp, content)
Dhttp.py62 from googleapiclient.errors import HttpError
710 raise HttpError(resp, content, uri=self._uri)
856 raise HttpError(resp, content, uri=self.uri)
1026 raise HttpError(resp, content, uri=self.uri)
1390 raise HttpError(resp, content, uri=self._batch_uri)
1487 raise HttpError(resp, content, uri=request.uri)
1489 except HttpError as e:
/external/python/google-api-python-client/docs/epy/
Dapi-objects.txt160 googleapiclient.errors.HttpError._get_reason googleapiclient.errors.HttpError-class.html#_get_reason
162 googleapiclient.errors.HttpError googleapiclient.errors.HttpError-class.html
163 googleapiclient.errors.HttpError.__str__ googleapiclient.errors.HttpError-class.html#__str__
164 googleapiclient.errors.HttpError.__repr__ googleapiclient.errors.HttpError-class.html#__repr__
165 googleapiclient.errors.HttpError.__init__ googleapiclient.errors.HttpError-class.html#__init__
166 googleapiclient.errors.HttpError._get_reason googleapiclient.errors.HttpError-class.html#_get_reason
172 googleapiclient.errors.HttpError.__str__ googleapiclient.errors.HttpError-class.html#__str__
173 googleapiclient.errors.HttpError.__repr__ googleapiclient.errors.HttpError-class.html#__repr__
174 googleapiclient.errors.HttpError.__init__ googleapiclient.errors.HttpError-class.html#__init__
175 googleapiclient.errors.HttpError._get_reason googleapiclient.errors.HttpError-class.html#_get_reason
/external/python/google-api-python-client/samples/analytics/
Dhello_analytics_api_v3.py50 from googleapiclient.errors import HttpError
74 except HttpError as error:
Dcore_reporting_v3_reference.py66 from googleapiclient.errors import HttpError
92 except HttpError as error:
Dmanagement_v3_reference.py60 from googleapiclient.errors import HttpError
79 except HttpError as error:
/external/autotest/site_utils/
Dgmail_lib.py123 except apiclient_errors.HttpError as error:
164 if not isinstance(exc, apiclient_errors.HttpError):
/external/python/google-api-python-client/docs/
Dmedia.md52 …[`googleapiclient.errors.HttpError`](https://google.github.io/google-api-python-client/docs/epy/go…
63 except apiclient.errors.HttpError, e:

12