ennru
(Enno)
1
Before Akka Http 1.1.0 we could convert a Javadsl URI to its Scaladsl counterpart via
uri.asInstanceOf[akka.http.impl.model.JavaUri].uri`
This is now forbidden as JavaUri was made private.
Scaladsl to Javadsl conversion was possible with
JavaUri(sUri)
What is the recommended approach for these conversions with Akka Http 1.1.x?
ktoso
(Konrad `ktoso` Malawski)
2
Please open a ticket on https://github.com/akka/akka-http/issues
I think we should expose an additional create method, since nowadays impl is anyway:
public static Uri create(String uri) {
return new JavaUri(akka.http.scaladsl.model.Uri.apply(uri));
}
ennru
(Enno)
3