Appwrite. Consts. ExecutionMethod
(appwrite v1.0.0)
View Source
HTTP methods accepted by the Appwrite Functions execution endpoint.
| Method | Value |
|---|---|
| GET | "GET" |
| POST | "POST" |
| PUT | "PUT" |
| PATCH | "PATCH" |
| DELETE | "DELETE" |
| OPTIONS | "OPTIONS" |
Summary
Functions
Returns true when value is a valid execution method, otherwise false.
Guard — returns true when value is a valid execution method.
Returns {:ok, value} if valid, or {:error, "Invalid execution method"}.
Returns value if valid. Raises ArgumentError otherwise.
Returns all valid execution method values.
Functions
Returns true when value is a valid execution method, otherwise false.
Guard — returns true when value is a valid execution method.
Can be used in function heads:
def handle(v) when Elixir.Appwrite.Consts.ExecutionMethod.valid_value(v), do: :ok
Returns {:ok, value} if valid, or {:error, "Invalid execution method"}.
Returns value if valid. Raises ArgumentError otherwise.
@spec values() :: [String.t()]
Returns all valid execution method values.