14 lines
356 B
Python
14 lines
356 B
Python
import httpcore
|
|
import structio
|
|
|
|
|
|
async def main():
|
|
# Note: this test only works because we have our own version of httpcore that
|
|
# implements a structio-compatible backend. It's just an example anyway
|
|
pool = httpcore.AsyncConnectionPool()
|
|
print(await pool.request("GET", "http://example.com"))
|
|
# TODO: SSL support
|
|
|
|
|
|
structio.run(main)
|