0

I am currently using a APIClient to send GET Requests:

public async Task<Model.Rootobject> Stock()
    {
        var apiClient = new APIClient();
        Task<string> getResponseTask = apiClient.GetAsync("website");
        string json = await getResponseTask;
        Model.Rootobject Model_ = JsonSerializer.Deserialize<Model.Rootobject>(json);
        return Model_;
    }

This is so I can deserialize my response. I want to be able to send a GET request using a proxy; is there a way to do it or do I have to switch to a HTTPClient and use that with a proxy?Any help would be appreciated.

0 Answers0