Class HttpUtils.HttpResponseOps

java.lang.Object
scala.AnyVal
com.here.platform.data.client.utils.HttpUtils.HttpResponseOps
Enclosing class:
HttpUtils

public static class HttpUtils.HttpResponseOps extends scala.AnyVal
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpResponseOps(org.apache.pekko.http.scaladsl.model.HttpResponse response)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> scala.concurrent.Future<T>
    asDataClientException(String msg, scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
     
    <T> scala.concurrent.Future<T>
    asException(scala.Function1<String,Throwable> buildException, scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
     
    <T> scala.concurrent.Future<T>
    asNotFoundException(String msg, scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
     
    <T> scala.concurrent.Future<T>
    asNotFoundException(scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
     
    org.apache.pekko.http.scaladsl.model.HttpResponse
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpResponseOps

      public HttpResponseOps(org.apache.pekko.http.scaladsl.model.HttpResponse response)
  • Method Details

    • response

      public org.apache.pekko.http.scaladsl.model.HttpResponse response()
    • asException

      public <T> scala.concurrent.Future<T> asException(scala.Function1<String,Throwable> buildException, scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
    • asDataClientException

      public <T> scala.concurrent.Future<T> asDataClientException(String msg, scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
    • asNotFoundException

      public <T> scala.concurrent.Future<T> asNotFoundException(scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)
    • asNotFoundException

      public <T> scala.concurrent.Future<T> asNotFoundException(String msg, scala.concurrent.ExecutionContext executor, org.apache.pekko.stream.Materializer materializer)