Description
Hi all,
When invoking an edge function through the client, the 'POST' method is hardcoded in both the sync and async clients. Our edge function also accepts PUT/DELETE HTTP methods, which makes the supabase client unusable to us.
Suggested solution
The internal _request method already supports different HTTP methods, so I suggest adding a method argument to the invoke method with a default to "POST", and propagating this argument to _request.
Thanks!
Alternatives
No response
Additional context
No response
Description
Hi all,
When invoking an edge function through the client, the 'POST' method is hardcoded in both the sync and async clients. Our edge function also accepts PUT/DELETE HTTP methods, which makes the supabase client unusable to us.
Suggested solution
The internal _request method already supports different HTTP methods, so I suggest adding a
methodargument to theinvokemethod with a default to "POST", and propagating this argument to_request.Thanks!
Alternatives
No response
Additional context
No response