2021-10-09 11:20:59 +00:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
const HttpUtils = preload("res://zfoo/util/HttpUtils.gd")
|
|
|
|
|
|
|
|
func _ready():
|
2022-07-27 08:02:18 +00:00
|
|
|
#doHttpRequest();
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
func doHttpRequest():
|
2021-10-09 11:20:59 +00:00
|
|
|
var util = HttpUtils.new()
|
|
|
|
var response = util.get("https://www.zhihu.com")
|
2022-07-27 08:02:18 +00:00
|
|
|
print(response)
|