Edit this page

up.Response up.Response.prototype.method
Property

The HTTP method used for the request that produced this response.

This is usually the HTTP method used by the initial request, but if the server redirected multiple requests may have been involved. In this case this property reflects the method used by the last request.

If the response's URL changed from the request's URL, Unpoly will assume a redirect and set the method to GET. Also see the X-Up-Method header.


Value

method string