Update Files
This commit is contained in:
10
Kha/Backends/WPF/kha/network/Http.hx
Normal file
10
Kha/Backends/WPF/kha/network/Http.hx
Normal file
@ -0,0 +1,10 @@
|
||||
package kha.network;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
class Http {
|
||||
public static function request(url: String, path: String, data: String, port: Int, secure: Bool, method: HttpMethod, contentType: String,
|
||||
callback: Int->Int->String->Void /*error, response, body*/): Void {
|
||||
callback(418, 418, null);
|
||||
}
|
||||
}
|
11
Kha/Backends/WPF/kha/network/Network.hx
Normal file
11
Kha/Backends/WPF/kha/network/Network.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package kha.network;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
class Network {
|
||||
public function new(url: String, port: Int, errorCallback: Void->Void, closeCallback: Void->Void) {}
|
||||
|
||||
public function send(bytes: Bytes, mandatory: Bool): Void {}
|
||||
|
||||
public function listen(listener: Bytes->Void): Void {}
|
||||
}
|
Reference in New Issue
Block a user