Search.../

method

Returns the HTTP method used in calling an HTTP function.

Description

Returns "GET", "POST", "PUT", or "DELETE".

Type:

stringRead Only

Was this helpful?

Get the method used to call the HTTP function

Copy Code
1// In http-functions.js
2
3export function use_myFunction(request) {
4
5 let method = request.method; // "GET"
6
7}