Meilisearch PHP | Documentation

Http

Table of Contents

Methods

delete()  : mixed
get()  : mixed
getStream()  : StreamInterface
patch()  : mixed
post()  : mixed
postStream()  : StreamInterface
put()  : mixed

Methods

delete()

public delete(string $path[, array<string, scalar|array<int, scalar>> $query = [] ]) : mixed
Parameters
$path : string
$query : array<string, scalar|array<int, scalar>> = []
Tags
throws
ApiException
JsonException

get()

public get(string $path[, array<string, scalar|array<int, scalar>> $query = [] ]) : mixed
Parameters
$path : string
$query : array<string, scalar|array<int, scalar>> = []
Tags
throws
ApiException
JsonException

getStream()

public getStream(string $path[, array<string, scalar|array<int, scalar>> $query = [] ]) : StreamInterface
Parameters
$path : string
$query : array<string, scalar|array<int, scalar>> = []
Tags
throws
ApiException
Return values
StreamInterface

patch()

public patch(string $path[, mixed $body = null ][, array<string, scalar|array<int, scalar>> $query = [] ]) : mixed
Parameters
$path : string
$body : mixed = null
$query : array<string, scalar|array<int, scalar>> = []
Tags
throws
ApiException
JsonException

post()

public post(string $path[, mixed $body = null ][, array<string, scalar|array<int, scalar>> $query = [] ][, non-empty-string|null $contentType = null ]) : mixed
Parameters
$path : string
$body : mixed = null
$query : array<string, scalar|array<int, scalar>> = []
$contentType : non-empty-string|null = null
Tags
throws
ApiException
JsonException

postStream()

public postStream(string $path[, mixed $body = null ][, array<string, scalar|array<int, scalar>> $query = [] ]) : StreamInterface
Parameters
$path : string
$body : mixed = null
$query : array<string, scalar|array<int, scalar>> = []
Tags
throws
ApiException
JsonException
Return values
StreamInterface

put()

public put(string $path[, mixed $body = null ][, array<string, scalar|array<int, scalar>> $query = [] ][, non-empty-string|null $contentType = null ]) : mixed
Parameters
$path : string
$body : mixed = null
$query : array<string, scalar|array<int, scalar>> = []
$contentType : non-empty-string|null = null
Tags
throws
ApiException
JsonException
On this page

Search results