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

Function main

python/examples/form.py:5–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5async def main():
6 resp = await rnet.post(
7 "https://httpbin.org/anything",
8 form=[("key", "value")],
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: ", await resp.text())
19
20
21if __name__ == "__main__":

Callers 1

form.pyFile · 0.70

Calls 2

postMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected