You are here

protected function ServicesContext::isRequestHasPostBody in Services 7.3

Determine whether we should expect request body to be available.

Return value

bool

1 call to ServicesContext::isRequestHasPostBody()
ServicesContext::buildFromGlobals in servers/rest_server/includes/ServicesContext.inc
Build all context data from global variables.

File

servers/rest_server/includes/ServicesContext.inc, line 118

Class

ServicesContext

Code

protected function isRequestHasPostBody() {
  $method = $this
    ->getRequestMethod();
  return in_array($method, array(
    'POST',
    'PUT',
  ));
}