method property

Contains the HTTP verb to use for the request.

This property is read-only.

Syntax

JavaScript
method = object.method

 

Property values

Type: ByteString

A ByteString that indicates the request's method.

Standards information

Remarks

Acceptable values are GET, POST, PUT, CONNECT, HEAD, OPTIONS, TRACE, TRACK, DELETE.

The value of method is GET by default.

See also

Request