code: def _decode_body(content_type: Optional[str], body: bytes,
                   *, strict: bool = False) -> Any:
      
      type_, encoding = _parse_content_type(content_type)
      if not len(body) or not content_type:
          return None
      decoded_body = body.decode(encoding)
      if type_ == "application/json":
          return json.loads(decoded_body)
      elif type_ == "application/x-www-form-urlencoded":
          return json.loads(urllib.parse.parse_qs(decoded_body)["payload"][0])
      elif strict:
          raise ValueError(f"unrecognized content type: {type_!r}")
      return decoded_body
docs: Decode an HTTP body based on the specified content type.
  
      If 'strict' is true, then raise ValueError if the content type
      is not recognized. Otherwise simply returned the body as a decoded
      string.