'Returns whether a Webob.Request object will possess an entity body.
:param request:  Webob.Request object'

def has_body(self, request):

    if (self.is_valid_encoding(request) and self.is_valid_method(request)):
        request.is_body_readable = True
        return True
    if ((request.content_length is not None) and (request.content_length > 0)):
        return True
    return False
