Get2 C# 초간단 Rest API Server 만들기 (Simple-HTTP) C# Rest API Server 만들기 Simple-HTTP 이용하기 GitHub - dajuric/simple-http: Simple, portable HTTP server for .NET based on HttpListener. Simple, portable HTTP server for .NET based on HttpListener. - GitHub - dajuric/simple-http: Simple, portable HTTP server for .NET based on HttpListener. github.com Simple-HTTP 설치 Nuget에서 검색후 설치 2. Route 설정 및 관리 프로젝트에 Service폴더 추가 및 HttpRoute.cs 추가 using SimpleHttp; .. 2023. 6. 30. HttpClient 사용해서 UPBIT 마켓 조회하기 HttpClient 사용해서 UPBIT 마켓 조회하기 1. HttpClient 선언해줍니다. using System.Net.Http; private static HttpClient client = new HttpClient(); 2. Button을 추가하고 GetAsync를 실행한다. private void btnGetMarket_Click(object sender, EventArgs e) { HttpResponseMessage response = client.GetAsync("https://api.upbit.com/v1/market/all").GetAwaiter().GetResult(); string json = response.Content.ReadAsStringAsync().GetAwaiter()... 2023. 6. 26. 이전 1 다음