Menu

## HTTPClient
in

HTTPClient.php : 28

The interface that represents HTTP client of LINE Messaging API.

If you want to switch using HTTP client, please implement this.

### Table of Contents

delete() : Response
  Sends DELETE request to LINE Messaging API.
get() : Response
  Sends GET request to LINE Messaging API.
post() : Response
  Sends POST request to LINE Messaging API.
put() : Response
  Sends PUT request to LINE Messaging API.

### Methods

#### delete()

HTTPClient.php : 66

Sends DELETE request to LINE Messaging API.

`public delete(string $url) : Response`

##### Parameters

$url : string

  Request URL.

##### Return values

Response —

Response of API request.

#### get()

HTTPClient.php : 38

Sends GET request to LINE Messaging API.

`public get(string $url[, array<string|int, mixed> $data = [] ][, array<string|int, mixed> $headers = [] ]) : Response`

##### Parameters

$url : string

  Request URL.

$data : array<string|int, mixed> = []

  URL parameters.

$headers : array<string|int, mixed> = []

##### Return values

Response —

Response of API request.

#### post()

HTTPClient.php : 48

Sends POST request to LINE Messaging API.

`public post(string $url, array<string|int, mixed> $data[, array<string|int, mixed>|null $headers = null ]) : Response`

##### Parameters

$url : string

  Request URL.

$data : array<string|int, mixed>

  Request body.

$headers : array<string|int, mixed>|null = null

  Request headers.

##### Return values

Response —

Response of API request.

#### put()

HTTPClient.php : 58

Sends PUT request to LINE Messaging API.

`public put(string $url, array<string|int, mixed> $data[, array<string|int, mixed>|null $headers = null ]) : Response`

##### Parameters

$url : string

  Request URL.

$data : array<string|int, mixed>

  Request body.

$headers : array<string|int, mixed>|null = null

  Request headers.

##### Return values

Response —

Response of API request.

## Search results