Andrew Grimm
Andrew Grimm
CC#
Created by Andrew Grimm on 4/8/2024 in #help
I'd like to ask for a little help from someone who has used the HttpServer class
I'm trying to implement this class in te Godot game engine but I can't make it receive http requests. I'm sending the requests through the HttpClient class from a .NET 8.0 page. I tried to simplify the code. The problem is that I don't get any print after queuing the GET request This is my .NET code The Service
using Lorendale.Web.Models;
using Lorendale.Web.Service.IService;
using Lorendale.Web.Utility;

namespace Lorendale.Web.Service
{
public class ArmoryService : IArmoryService
{
...
public async Task<ResponseDto?> GetArmoryAsync()
{
return await _baseService.SendAsync(new RequestDto()
{
ApiType = "GET",
Url = "localhost:6999"
});
}
}
}
using Lorendale.Web.Models;
using Lorendale.Web.Service.IService;
using Lorendale.Web.Utility;

namespace Lorendale.Web.Service
{
public class ArmoryService : IArmoryService
{
...
public async Task<ResponseDto?> GetArmoryAsync()
{
return await _baseService.SendAsync(new RequestDto()
{
ApiType = "GET",
Url = "localhost:6999"
});
}
}
}
I can give the code of the BaseService class but it limits me to 2000 words
31 replies