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([
|
$context = stream_context_create([
|
||||||
"http" => [
|
"http" => [
|
||||||
"header" => $this->http_headers(),
|
"header" => $this->http_headers(),
|
||||||
"method" => $method->value,
|
"method" => $method->name,
|
||||||
"ignore_errors" => true,
|
"ignore_errors" => true,
|
||||||
"content" => !empty($payload) ? json_encode($payload) : ""
|
"content" => !empty($payload) ? json_encode($payload) : ""
|
||||||
],
|
],
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
namespace Reflect;
|
namespace Reflect;
|
||||||
|
|
||||||
// Allowed HTTP verbs
|
// Allowed HTTP verbs
|
||||||
enum Method: string {
|
enum Method {
|
||||||
case GET = "GET";
|
case GET;
|
||||||
case POST = "POST";
|
case POST;
|
||||||
case PUT = "PUT";
|
case PUT;
|
||||||
case DELETE = "DELETE";
|
case DELETE;
|
||||||
case PATCH = "PATCH";
|
case PATCH;
|
||||||
case OPTIONS = "OPTIONS";
|
case OPTIONS;
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue