public function ServicesContext::getRequestMethod in Services 7.3
Determine Request Method of the request.
Return value
string Name of request method (i.e. GET, POST, PUT ...).
1 call to ServicesContext::getRequestMethod()
- ServicesContext::isRequestHasPostBody in servers/
rest_server/ includes/ ServicesContext.inc - Determine whether we should expect request body to be available.
File
- servers/
rest_server/ includes/ ServicesContext.inc, line 81
Class
Code
public function getRequestMethod() {
if (!isset($this->data['request_method'])) {
$this->data['request_method'] = $this
->getRequestMethodFromGlobals();
}
return $this->data['request_method'];
}