> ## Documentation Index
> Fetch the complete documentation index at: https://generaltranslation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# HttpClient

Node.js와 브라우저 환경에서 모두 동작하는 범용 HTTP 클라이언트

<div id="constructors">
  ## 생성자
</div>

<div id="constructor">
  ### constructor
</div>

• **new HttpClient**(): [`HttpClient`](/ko/xdks/typescript/reference/classes/HttpClient)

<div id="returns">
  #### 반환값
</div>

[`HttpClient`](/ko/xdks/typescript/reference/classes/HttpClient)

<div id="defined-in">
  #### 정의된 위치
</div>

[http-client.ts:43](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L43)

<div id="methods">
  ## 메서드
</div>

<div id="createheaders">
  ### createHeaders
</div>

▸ **createHeaders**(`init?`): `Headers`

새 Headers 인스턴스를 생성합니다

<div id="parameters">
  #### 매개변수
</div>

| 이름      | type                          |           |
| :------ | :---------------------------- | --------- |
| `init?` | `Record`\<`string`, `string`> | `Headers` |

<div id="returns">
  #### 반환값
</div>

`Headers`

<div id="defined-in">
  #### 정의된 위치
</div>

[http-client.ts:99](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L99)

***

<div id="request">
  ### request
</div>

▸ **request**(`url`, `options?`): `Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

HTTP 요청을 보냅니다

<div id="parameters">
  #### 매개변수
</div>

| 이름        | 타입                                                                                              |
| :-------- | :---------------------------------------------------------------------------------------------- |
| `url`     | `string`                                                                                        |
| `options` | [`HttpClientRequestOptions`](/ko/xdks/typescript/reference/interfaces/HttpClientRequestOptions) |

#### 반환

`Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

#### 정의 위치

[http-client.ts:106](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L106)

***

<div id="get">
  ### get
</div>

▸ **get**(`url`, `headers?`): `Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

GET 요청을 보냅니다

<div id="parameters">
  #### 매개변수
</div>

| 이름         | type                          |
| :--------- | :---------------------------- |
| `url`      | `string`                      |
| `headers?` | `Record`\<`string`, `string`> |

<div id="returns">
  #### 반환값
</div>

`Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

#### 정의 위치

[http-client.ts:141](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L141)

***

<div id="post">
  ### post
</div>

▸ **post**(`url`, `body?`, `headers?`): `Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

POST 요청을 보냅니다

<div id="parameters">
  #### 매개변수
</div>

| 이름         | type                          |
| :--------- | :---------------------------- |
| `url`      | `string`                      |
| `body?`    | `string`                      |
| `headers?` | `Record`\<`string`, `string`> |

#### 반환

`Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

#### 정의 위치

[http-client.ts:151](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L151)

***

<div id="put">
  ### put
</div>

▸ **put**(`url`, `body?`, `headers?`): `Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

PUT 요청을 수행합니다

<div id="parameters">
  #### 매개변수
</div>

| 이름         | type                          |
| :--------- | :---------------------------- |
| `url`      | `string`                      |
| `body?`    | `string`                      |
| `headers?` | `Record`\<`string`, `string`> |

#### 반환

`Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

#### 정의 위치

[http-client.ts:162](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L162)

***

<div id="delete">
  ### delete
</div>

▸ **delete**(`url`, `headers?`): `Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

DELETE 요청을 보냅니다

<div id="parameters">
  #### 매개변수
</div>

| 이름         | type                          |
| :--------- | :---------------------------- |
| `url`      | `string`                      |
| `headers?` | `Record`\<`string`, `string`> |

#### 반환

`Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

<div id="defined-in">
  #### 정의된 위치
</div>

[http-client.ts:173](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L173)

***

<div id="patch">
  ### patch
</div>

▸ **patch**(`url`, `body?`, `headers?`): `Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

PATCH 요청을 수행합니다

<div id="parameters">
  #### 매개변수
</div>

| 이름         | type                          |
| :--------- | :---------------------------- |
| `url`      | `string`                      |
| `body?`    | `string`                      |
| `headers?` | `Record`\<`string`, `string`> |

#### 반환

`Promise`\<[`HttpResponse`](/ko/xdks/typescript/reference/interfaces/HttpResponse)>

<div id="defined-in">
  #### 정의된 위치
</div>

[http-client.ts:183](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/http-client.ts#L183)
