MCPcopy Index your code
hub / github.com/webpy/webpy / open

Method open

web/browser.py:74–79  ·  view source on GitHub ↗

Opens the specified url.

(self, url, data=None, headers={})

Source from the content-addressed store, hash-verified

72 return self.get_response()
73
74 def open(self, url, data=None, headers={}):
75 """Opens the specified url."""
76 url = urljoin(self.url, url)
77 req = Request(url, data, headers)
78
79 return self.do_request(req)
80
81 def show(self):
82 """Opens the current page in real web browser."""

Callers 14

follow_linkMethod · 0.95
testSessionMethod · 0.80
testParallelSessionsMethod · 0.80
testBadSessionIdMethod · 0.80
testSlowCookiesMethod · 0.80
testRedirectMethod · 0.80
testCookiesMethod · 0.80
testNotfoundMethod · 0.80
testRedirectMethod · 0.80
test_layers_unicodeMethod · 0.80
test_layers_bytesMethod · 0.80
test_unicode_urlMethod · 0.80

Calls 1

do_requestMethod · 0.95

Tested by 11

testSessionMethod · 0.64
testParallelSessionsMethod · 0.64
testBadSessionIdMethod · 0.64
testSlowCookiesMethod · 0.64
testRedirectMethod · 0.64
testCookiesMethod · 0.64
testNotfoundMethod · 0.64
testRedirectMethod · 0.64
test_layers_unicodeMethod · 0.64
test_layers_bytesMethod · 0.64
test_unicode_urlMethod · 0.64