MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / main

Function main

python/examples/blocking/auth.py:4–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def main():
5 client = BlockingClient()
6 resp = client.get(
7 "https://httpbin.org/anything",
8 auth="token",
9 )
10 print("Status Code: ", resp.status_code)
11 print("Version: ", resp.version)
12 print("Response URL: ", resp.url)
13 print("Headers: ", resp.headers)
14 print("Cookies: ", resp.cookies)
15 print("Content-Length: ", resp.content_length)
16 print("Encoding: ", resp.encoding)
17 print("Remote Address: ", resp.remote_addr)
18 print("Text: ", resp.text())
19
20
21if __name__ == "__main__":

Callers 1

auth.pyFile · 0.70

Calls 3

getMethod · 0.95
BlockingClientClass · 0.85
textMethod · 0.45

Tested by

no test coverage detected