def _process_req_body(self, body):
try:<EOL><INDENT>return json.loads(body)<EOL><DEDENT>except ValueError:<EOL><INDENT>return urlparse.parse_qs(body, keep_blank_values=True)<EOL><DEDENT>
Process the body of the HTTP request.

        If the body is valid JSON, return the JSON as a dict.
        Else, convert the key=value format to a dict and return that.

        Args:
          body: The body of the HTTP request.