feat(doc): add OPTIONS ref. to README

This commit is contained in:
Victor Westerlund 2024-04-06 14:54:42 +00:00 committed by GitHub
parent e4d4d88e03
commit 7cb93136af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,3 +137,19 @@ Example:
```php
$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();
```