Interface HttpClientProvider


@DoNotInherit public interface HttpClientProvider
Not for user extension, instances are available through injection in selected component types.
  • Method Summary

    Modifier and Type
    Method
    Description
    httpClientFor(String serviceName)
    Returns a HttpClient configured to connect to another service deployed on the same project.
  • Method Details

    • httpClientFor

      HttpClient httpClientFor(String serviceName)
      Returns a HttpClient configured to connect to another service deployed on the same project.

      The service is identified only by the name it has been deployed. The runtime takes care of routing requests to the service and keeping the data safe by encrypting the connection.