mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-28 05:57:13 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from twisted.internet import reactor
|
||||
import treq
|
||||
|
||||
|
||||
def done(response):
|
||||
print(response.code)
|
||||
reactor.stop()
|
||||
|
||||
|
||||
def err(fail):
|
||||
print(fail.value)
|
||||
reactor.stop()
|
||||
|
||||
|
||||
treq.get("https://localhost").addCallback(done).addErrback(err)
|
||||
reactor.run()
|
||||
Reference in New Issue
Block a user