4
HttpClient BaseAddress neden çalışmıyor?
BaseAddressKısmi bir URI yolunu tanımlayan aşağıdaki kodu göz önünde bulundurun . using (var handler = new HttpClientHandler()) using (var client = new HttpClient(handler)) { client.BaseAddress = new Uri("http://something.com/api"); var response = await client.GetAsync("/resource/7"); } Bunun bir GETistekte bulunmasını bekliyorum http://something.com/api/resource/7. Ama öyle değil. Biraz arama yaptıktan sonra bu soruyu ve …
299
c#
.net
dotnet-httpclient