생성자
constructor
HttpClient
반환값
HttpClient
정의된 위치
메서드
createHeaders
init?): Headers
새 Headers 인스턴스를 생성합니다
매개변수
| 이름 | type | |
|---|---|---|
init? | Record<string, string> | Headers |
반환값
Headers
정의된 위치
request
url, options?): Promise<HttpResponse>
HTTP 요청을 보냅니다
매개변수
| 이름 | 타입 |
|---|---|
url | string |
options | HttpClientRequestOptions |
반환
Promise<HttpResponse>
정의 위치
http-client.ts:106get
url, headers?): Promise<HttpResponse>
GET 요청을 보냅니다
매개변수
| 이름 | type |
|---|---|
url | string |
headers? | Record<string, string> |
반환값
Promise<HttpResponse>
정의 위치
http-client.ts:141post
url, body?, headers?): Promise<HttpResponse>
POST 요청을 보냅니다
매개변수
| 이름 | type |
|---|---|
url | string |
body? | string |
headers? | Record<string, string> |
반환
Promise<HttpResponse>
정의 위치
http-client.ts:151put
url, body?, headers?): Promise<HttpResponse>
PUT 요청을 수행합니다
매개변수
| 이름 | type |
|---|---|
url | string |
body? | string |
headers? | Record<string, string> |
반환
Promise<HttpResponse>
정의 위치
http-client.ts:162delete
url, headers?): Promise<HttpResponse>
DELETE 요청을 보냅니다
매개변수
| 이름 | type |
|---|---|
url | string |
headers? | Record<string, string> |
반환
Promise<HttpResponse>
정의된 위치
patch
url, body?, headers?): Promise<HttpResponse>
PATCH 요청을 수행합니다
매개변수
| 이름 | type |
|---|---|
url | string |
body? | string |
headers? | Record<string, string> |
반환
Promise<HttpResponse>