polymorphic expression cannot be instantiated to expected type;
[error] found : [T]akka.stream.FlattenStrategy[akka.stream.scaladsl.Source[T],T]
[error] required: akka.stream.FlattenStrategy[akka.stream.scaladsl.Flow[akka.http.model.HttpRequest,akka.http.model.HttpResponse],?]
[error] }.flatten( FlattenStrategy.concat )val serverBinding = Http( systemRef ).
bind(
interface = interface,
port = port )
val con: OutgoingConnection = Http( systemRef ).outgoingConnection( "akka.io" )
val badRequestFlow: Flow[HttpRequest, HttpResponse] =
Flow[HttpRequest].map( _ ⇒ HttpResponse( BadRequest, entity = "Bad Request" ) )
val proxy: Flow[HttpRequest, HttpResponse] = con.flow.concat( Source( () ⇒ List( HttpRequest( GET, uri = "/" ) ).iterator ) )
val proxyRequest: Flow[HttpRequest, HttpResponse] =
Flow[HttpRequest].map {
case HttpRequest( POST, Uri.Path( "/proxy" ), _, _, _ ) ⇒ proxy
case other ⇒ badRequestFlow
}.flatten( FlattenStrategy.concat )val badRequestFlow: Flow[HttpRequest, HttpResponse] =
Flow[HttpRequest].map( _ ⇒ HttpResponse( BadRequest, entity = "Bad Request" ) )val badRequestFlow: Flow[HttpRequest, HttpResponse] =
Flow[HttpRequest, HttpResponse].map( _ ⇒ HttpResponse( BadRequest, entity = "Bad Request" ) )--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
service-auth [DEBUG] [12/09/2014 22:55:35.629] [main] [EventStream(akka://ProxySystem)] logger log1-Logging$DefaultLogger started
service-auth [DEBUG] [12/09/2014 22:55:35.631] [main] [EventStream(akka://ProxySystem)] Default Loggers started
service-auth [DEBUG] [12/09/2014 22:55:36.174] [ProxySystem-akka.actor.default-dispatcher-3] [akka://ProxySystem/system/IO-TCP/selectors/$a/0] Successfully bound to /127.0.0.1:7080
service-auth [DEBUG] [12/09/2014 22:55:46.256] [ProxySystem-akka.actor.default-dispatcher-3] [akka://ProxySystem/system/IO-TCP/selectors/$a/0] New connection accepted
service-auth [DEBUG] [12/09/2014 22:55:46.551] [ProxySystem-akka.actor.default-dispatcher-2] [akka://ProxySystem/system/IO-TCP/selectors/$a/2] Attempting connection to [www.google.com/173.194.71.106:80]
service-auth [DEBUG] [12/09/2014 22:55:46.559] [ProxySystem-akka.actor.default-dispatcher-2] [akka://ProxySystem/system/IO-TCP/selectors/$a/2] Connection established to [www.google.com/173.194.71.106:80]
service-auth [DEBUG] [12/09/2014 22:55:51.908] [ProxySystem-akka.actor.default-dispatcher-10] [akka://ProxySystem/user/$a/flow-17-1-prefixAndTail] Cancelling akka.stream.impl.MultiStreamOutputProcessor$SubstreamOutput@43d908c (after: 5000 ms)
service-auth [INFO] [12/09/2014 22:55:51.913] [ProxySystem-akka.actor.default-dispatcher-12] [akka://ProxySystem/user/$a/flow-17-1-prefixAndTail] Message [akka.stream.actor.ActorSubscriberMessage$OnComplete$] from Actor[akka://ProxySystem/deadLetters] to Actor[akka://ProxySystem/user/$a/flow-17-1-prefixAndTail#1089667920] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.