MCPcopy Index your code
hub / github.com/python/cpython / send_head

Method send_head

Lib/test/test_urllib2_localnet.py:423–436  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

421 self.requests.append(post_data)
422
423 def send_head(self):
424 FakeHTTPRequestHandler.headers_received = self.headers
425 self.requests.append(self.path)
426 response_code, headers, body = responses.pop(0)
427
428 self.send_response(response_code)
429
430 for (header, value) in headers:
431 self.send_header(header, value % {'port':self.port})
432 if body:
433 self.send_header("Content-type", "text/plain")
434 self.end_headers()
435 return body
436 self.end_headers()
437
438 def log_message(self, *args):
439 pass

Callers 1

do_GETMethod · 0.95

Calls 5

send_responseMethod · 0.80
send_headerMethod · 0.80
appendMethod · 0.45
popMethod · 0.45
end_headersMethod · 0.45

Tested by

no test coverage detected