Cleanup network module.

This commit is contained in:
2023-07-04 11:12:27 +08:00
parent a4d0e3867a
commit f65e4f1900
12 changed files with 71 additions and 99 deletions

View File

@@ -1,4 +1,4 @@
using Cryville.Common.Network;
using Cryville.Common.Network.Http11;
using Cryville.Common.Unity;
using Newtonsoft.Json;
using System;
@@ -21,7 +21,7 @@ namespace Cryville.Crtr.Network {
List<VersionInfo> _versions;
public void CheckVersion() {
try {
var client = new HttpsClient(BaseUri);
var client = new Https11Client(BaseUri);
client.Connect();
var response = client.Request("GET", new Uri(BaseUri, "versions"));
var data = Encoding.UTF8.GetString(response.MessageBody.ReadToEnd());