From 7cb93136afd9e231a4035f1206082abae8e7acec Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sat, 6 Apr 2024 14:54:42 +0000 Subject: [PATCH] feat(doc): add OPTIONS ref. to README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 376af5a..498dc77 100644 --- a/README.md +++ b/README.md @@ -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(); +```