Searched defs:http_client (Results 1 - 14 of 14) sorted by relevance

/pkg/src/modules/server/
H A Dface.py35 from six.moves import http_client namespace
62 raise cherrypy.HTTPError(http_client.NOT_FOUND,
65 raise cherrypy.HTTPError(http_client.SERVICE_UNAVAILABLE,
81 if error != http_client.NOT_FOUND:
124 return __handle_error(path, http_client.NOT_FOUND)
142 return __handle_error(request.path_info, http_client.NOT_FOUND)
144 return __handle_error(path, http_client.INTERNAL_SERVER_ERROR)
149 return __handle_error(path, http_client.NOT_FOUND)
153 return __handle_error(path, http_client.INTERNAL_SERVER_ERROR)
H A Dfeed.py43 from six.moves import http_client namespace
321 http_client.INTERNAL_SERVER_ERROR,
H A Ddepot.py61 from six.moves import cStringIO, http_client, queue namespace
423 raise cherrypy.HTTPError(http_client.NOT_FOUND,
440 raise cherrypy.HTTPError(http_client.BAD_REQUEST,
443 raise cherrypy.HTTPError(http_client.BAD_REQUEST,
448 raise cherrypy.HTTPError(http_client.NOT_FOUND,
453 raise cherrypy.HTTPError(http_client.BAD_REQUEST,
468 raise cherrypy.HTTPError(http_client.BAD_REQUEST,
473 raise cherrypy.HTTPError(http_client.NOT_FOUND, "Version '{0}' not "
505 raise cherrypy.HTTPError(http_client.BAD_REQUEST,
509 raise cherrypy.HTTPError(http_client
[all...]
/pkg/src/modules/client/transport/
H A Dexception.py31 from six.moves import http_client namespace
33 retryable_http_errors = set((http_client.REQUEST_TIMEOUT, http_client.BAD_GATEWAY,
34 http_client.GATEWAY_TIMEOUT, http_client.NOT_FOUND))
41 decayable_http_errors = set((http_client.NOT_FOUND,))
63 "http": http_client.responses,
64 "https": http_client.responses
H A Dengine.py35 from six.moves import http_client namespace
385 respcode == http_client.OK:
H A Drepo.py37 from six.moves import cStringIO, http_client namespace
436 if e.code == http_client.BAD_REQUEST:
773 if e.code == http_client.UNAUTHORIZED:
905 if e.code == http_client.BAD_REQUEST:
949 if e.code == http_client.BAD_REQUEST:
997 if e.code == http_client.BAD_REQUEST:
H A Dtransport.py39 from six.moves import http_client, range namespace
699 if e.code in (http_client.NOT_FOUND, errno.ENOENT):
702 elif e.code == http_client.NO_CONTENT:
704 elif e.code in (http_client.BAD_REQUEST,
/pkg/src/util/apache2/sysrepo/
H A Dsysrepo_p5p.py34 from six.moves import http_client namespace
40 SERVER_OK_STATUS = "{0} {1}".format(http_client.OK, http_client.responses[http_client.OK])
41 SERVER_ERROR_STATUS = "{0} {1}".format(http_client.INTERNAL_SERVER_ERROR,
42 http_client.responses[http_client.INTERNAL_SERVER_ERROR])
43 SERVER_NOTFOUND_STATUS = "{0} {1}".format(http_client.NOT_FOUND,
44 http_client.responses[http_client
[all...]
/pkg/src/tests/cli/
H A Dt_depot_config.py40 from six.moves import http_client namespace
904 self.assertTrue(u.code == http_client.OK,
H A Dt_pkg_depotd.py41 from six.moves import http_client namespace
226 if e.code != http_client.BAD_REQUEST:
358 if e.code != http_client.NOT_FOUND:
705 self.assertEqual(e.code, http_client.NOT_FOUND)
718 self.assertEqual(e.code, http_client.NOT_FOUND)
729 self.assertEqual(e.code, http_client.FORBIDDEN)
1104 if e.code != http_client.NOT_FOUND:
/pkg/src/util/apache2/depot/
H A Ddepot_index.py38 from six.moves import http_client, queue namespace
82 self.http_status = http_client.INTERNAL_SERVER_ERROR
94 self.http_status = http_client.FORBIDDEN
109 self.http_status = http_client.NOT_IMPLEMENTED
124 self.http_status = http_client.FORBIDDEN
659 status=http_client.SERVICE_UNAVAILABLE,
698 def default_error_page(status=http_client.NOT_FOUND, message="oops",
712 if (status == http_client.INTERNAL_SERVER_ERROR or
718 {"status": http_client.NOT_FOUND,
719 "message": http_client
[all...]
/pkg/src/modules/
H A Dpipeutils.py99 from six.moves import socketserver, http_client namespace
371 class PipedHTTPResponse(http_client.HTTPResponse):
380 http_client.HTTPResponse.begin(self)
385 class PipedHTTPConnection(http_client.HTTPConnection):
397 http_client.HTTPConnection.__init__(self, "localhost")
H A Ddepotcontroller.py34 from six.moves import http_client, range namespace
296 if e.code == http_client.NOT_MODIFIED:
/pkg/src/tests/
H A Dpkg5unittest.py74 from six.moves import configparser, http_client namespace
4468 if e.code == http_client.FORBIDDEN:
4648 if e.code == http_client.FORBIDDEN:
4673 if e.code == http_client.FORBIDDEN:

Completed in 896 milliseconds