コンストラクター
コンストラクター
HttpClient
戻り値
HttpClient
定義場所
メソッド
createHeaders
init?): Headers
新しい Headers インスタンスを作成します
パラメーター
| 名前 | type | |
|---|---|---|
init? | Record<string, string> | Headers |
戻り値
Headers
定義元
http-client.ts:99request
url, options?): Promise<HttpResponse>
HTTP リクエストを実行します
パラメーター
| 名前 | 型 |
|---|---|
url | string |
options | HttpClientRequestOptions |
戻り値
Promise<HttpResponse>
定義場所
get
url, headers?): Promise<HttpResponse>
GET リクエストを実行します
パラメーター
| 名前 | Type |
|---|---|
url | string |
headers? | Record<string, string> |
戻り値
Promise<HttpResponse>
定義元
http-client.ts:141post
url, body?, headers?): Promise<HttpResponse>
POST リクエストを実行します
パラメータ
| Name | 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 リクエストを実行します
パラメーター
| 名前 | 型 |
|---|---|
url | string |
body? | string |
headers? | Record<string, string> |
戻り値
Promise<HttpResponse>