mirror of
https://codeberg.org/reflect/reflect-client-php.git
synced 2025-09-13 17:43:42 +02:00
feat(doc): add OPTIONS ref. to README
This commit is contained in:
parent
e4d4d88e03
commit
7cb93136af
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -137,3 +137,19 @@ Example:
|
||||||
```php
|
```php
|
||||||
$client->call("my/endpoint")->params(["foo" => "bar"])->delete();
|
$client->call("my/endpoint")->params(["foo" => "bar"])->delete();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### `OPTIONS` Request
|
||||||
|
|
||||||
|
Make an `OPTIONS` request by chaining `options()` at the end of a method chain. This method will return a `Reflect\Response` object.
|
||||||
|
|
||||||
|
Use this method to query Reflect for available request methods.
|
||||||
|
|
||||||
|
```php
|
||||||
|
Client->options(): Reflect\Response;
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```php
|
||||||
|
$client->call("my/endpoint"))->options();
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue