MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / test

Function test

flow-python/examples/application/misc/bytes_client.py:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import requests
12
13def test():
14 ip = 'localhost'
15 port = '8080'
16 url = f'http://{ip}:{port}/analyze/bytes'
17 data = b'abcde'
18
19 headers = {'Content-Length': f'{len(data)}', 'Content-Type': '*/*'}
20 res = requests.post(url, data=data, headers=headers)
21 print(res.content)
22
23
24if __name__ == "__main__":

Callers 1

bytes_client.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected