CreateWebhookQuery
in package
FinalYes
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
-
toArray()
: array{url: non-empty-string, headers?: array
} - Builds the request body. `headers` is omitted when no header was given.
Properties
$headers read-only
private
array<string|int, mixed>
$headers
= []
$url read-only
private
string
$url
Methods
__construct()
public
__construct(non-empty-string $url[, array<non-empty-string, string> $headers = [] ]) : mixed
Parameters
- $url : non-empty-string
-
the URL Meilisearch notifies when a task finishes
- $headers : array<non-empty-string, string> = []
-
headers sent with every webhook request
toArray()
Builds the request body. `headers` is omitted when no header was given.
public
toArray() : array{url: non-empty-string, headers?: array}