Solar_Http_Request_Adapter::setMethod()

public Solar_Http_Request_Adapter Solar_Http_Request_Adapter::setMethod ( string $method )

Sets the HTTP method for the request (GET, POST, etc).

Parameters

  • (string) $method: The method to use for the request.

Returns

  • (Solar_Http_Request_Adapter) This adapter object.

Description

Sets the HTTP method for the request (GET, POST, etc).

Recgonized methods are OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, and CONNECT, GET, POST, PUT, DELETE, TRACE, OPTIONS, COPY, LOCK, MKCOL, MOVE, PROPFIND, PROPPATCH AND UNLOCK.



Local