docstr: For external Http-based artifact,
  build configuration suitable for constructing
  Http-based storage handler for this artifact.
docstr_tok: ["For","external","Http-based","artifact",",","build","configuration","suitable","for","constructing","Http-based","storage","handler","for","this","artifact","."]
code: def _build_http_config(self):
      """
      For external Http-based artifact,
      build configuration suitable for constructing
      Http-based storage handler for this artifact.
      """
      config = dict()
      config["endpoint"] = self.remote_path
      config[credentials.KEY_CREDENTIALS] = (
          self.credentials.to_dict() if self.credentials else dict()
      )
      return config
  
imports: import hashlib
  import os
  import re
  import tarfile
  from typing import Dict
  from studio.artifacts import artifacts_tracker
  from studio.util import util, logs
  from studio.credentials import credentials
  from studio.storage import storage_setup
  from studio.storage.storage_type import StorageType
  from studio.storage.storage_handler import StorageHandler
  from studio.storage.storage_handler_factory import StorageHandlerFactory
  from studio.storage.storage_util import tar_artifact, untar_artifact
label_desc: Use image node_id 16 for calling the Artifact obj's underlying member method code with example usage: obj._build_http_config() and returns: config