def METHOD_NAME():
  """Returns an httplib-based metrics reporter."""
  class HttplibReporter(object):
    def __init__(self):
      pass
    # pylint: disable=invalid-name
    def request(self, endpoint, method=None, body=None, headers=None):
      # Strip 'https://'
      https_con = http_client.HTTPSConnection(endpoint[8:].split('/')[0])
      https_con.request(method, endpoint, body=body, headers=headers)
      response = https_con.getresponse()
      # Return status like an httplib2 response.
      return ({'status': response.status},)
    # pylint: enable=invalid-name
  return HttplibReporter()