mirror of
https://codeberg.org/reflect/reflect-client-php.git
synced 2025-09-13 17:43:42 +02:00
wip: 2024-03-18T11:52:20+0100 (1710759140)
This commit is contained in:
parent
228b3c665d
commit
1d55090a31
2 changed files with 8 additions and 8 deletions
|
@ -52,7 +52,7 @@
|
|||
$context = stream_context_create([
|
||||
"http" => [
|
||||
"header" => $this->http_headers(),
|
||||
"method" => $method->value,
|
||||
"method" => $method->name,
|
||||
"ignore_errors" => true,
|
||||
"content" => !empty($payload) ? json_encode($payload) : ""
|
||||
],
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
namespace Reflect;
|
||||
|
||||
// Allowed HTTP verbs
|
||||
enum Method: string {
|
||||
case GET = "GET";
|
||||
case POST = "POST";
|
||||
case PUT = "PUT";
|
||||
case DELETE = "DELETE";
|
||||
case PATCH = "PATCH";
|
||||
case OPTIONS = "OPTIONS";
|
||||
enum Method {
|
||||
case GET;
|
||||
case POST;
|
||||
case PUT;
|
||||
case DELETE;
|
||||
case PATCH;
|
||||
case OPTIONS;
|
||||
}
|
Loading…
Add table
Reference in a new issue