public static async Task PostAsync()

in Assets/Scripts/HttpModule.cs [79:112]


    public static async Task<string> PostAsync(string path, string jwt, UserData userdata, CallbackDelegate callback)
    {
        string resp = "";

        var httpRequestMessage = new HttpRequestMessage
        {
            Method = HttpMethod.Post,
            RequestUri = new Uri(path),
            Headers =
            {
                {
                    HttpRequestHeader.Authorization.ToString(), jwt
                },
                {
                    "ClientInfo", JsonUtility.ToJson(GameSystem.GetClientInfo())
                },
                {
                    "UserData", JsonUtility.ToJson(userdata)
                }
            }
        };

        HttpResponseMessage response = await client.SendAsync(httpRequestMessage);
        if (response.IsSuccessStatusCode)
        {
            resp = response.Content.ReadAsStringAsync().Result;
            callback(resp);
        }
        else
        {
            Debug.Log("[HttpModule] Send Error - " + response.Content);
        }
        return resp;
    }