Lines Matching refs:response

22 treated as a valid response.
108 from urllib.response import addinfourl, addclosehook
169 See urllib.response.addinfourl for more detail on these properties.
174 the reason phrase returned by the server --- instead of the response
179 urllib.response.addinfourl object.
465 elif condition == "response":
492 # could. Otherwise, they return the response.
519 response = self._open(req, data)
521 # post-process response
525 response = meth(req, response)
527 return response
628 def http_response(self, request, response):
629 code, msg, hdrs = response.code, response.msg, response.info()
634 response = self.parent.error(
635 'http', request, response, code, msg, hdrs)
637 return response
654 """Return a Request or None in response to a redirect.
657 redirection response is received. If a redirection should
668 # Strictly (according to RFC 2616), 301 or 302 in response to
1037 def http_response(self, req, response):
1039 if 200 <= response.code < 300:
1043 return response
1056 response = self.http_error_auth_reqed('www-authenticate',
1058 return response
1071 response = self.http_error_auth_reqed('proxy-authenticate',
1073 return response
1084 # in a successful response.
1177 # or `auth-int` to the response back. we use `auth` to send the response back.
1197 'response="%s"' % (user, realm, nonce, req.selector,
1359 # mark the socket to be closed when this response object goes away.
1366 # with .headers, because urllib clients expect the response to
1409 def http_response(self, request, response):
1410 self.cookiejar.extract_cookies(response, request)
1411 return response
1948 response = http_conn.getresponse()
1955 if 200 <= response.status < 300:
1956 return addinfourl(response, response.msg, "http:" + url,
1957 response.status)
1960 url, response.fp,
1961 response.status, response.reason, response.msg, data)