mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
Updated NoTwitch's Twitch_Connection.HTTPResponse
This commit is contained in:
parent
792b414c64
commit
3426f17173
1 changed files with 4 additions and 0 deletions
|
@ -279,6 +279,9 @@ class HTTPResponse:
|
|||
|
||||
signal response_received
|
||||
|
||||
## The infuriatingly needed data variable. Because you can't await AND get signal data.
|
||||
var inf_data
|
||||
|
||||
func _init(http : HTTPRequest, storage : Array):
|
||||
|
||||
storage.append(self)
|
||||
|
@ -297,6 +300,7 @@ class HTTPResponse:
|
|||
info = info.data[0]
|
||||
|
||||
print("Response Received")
|
||||
inf_data = info
|
||||
response_received.emit(info)
|
||||
|
||||
http.queue_free()
|
||||
|
|
Loading…
Reference in a new issue