Update httpcore test to use https as well
This commit is contained in:
parent
060d61dc32
commit
0ef965cc92
|
@ -6,8 +6,10 @@ 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
|
||||
http = await pool.request("GET", "http://example.com")
|
||||
https = await pool.request("GET", "https://example.com")
|
||||
assert http.status == 200
|
||||
assert https.status == 200
|
||||
|
||||
|
||||
structio.run(main)
|
||||
|
|
Loading…
Reference in New Issue