httpMethod property

String? httpMethod
getter/setter pair

The HTTP method to use for the request.

The default is POST. The app's request handler for the task's target URL must be able to handle HTTP requests with this http_method, otherwise the task attempt fails with error code 405 (Method Not Allowed). See Writing a push task request handler and the App Engine documentation for your runtime on How Requests are Handled. Possible string values are:

  • "HTTP_METHOD_UNSPECIFIED" : HTTP method unspecified
  • "POST" : HTTP POST
  • "GET" : HTTP GET
  • "HEAD" : HTTP HEAD
  • "PUT" : HTTP PUT
  • "DELETE" : HTTP DELETE
  • "PATCH" : HTTP PATCH
  • "OPTIONS" : HTTP OPTIONS

Implementation

core.String? httpMethod;