[akka-user] Re: [akka-http] how does the formFields directive work?

2015-09-18 Thread tigerfoot
I'm afraid I'm lost here--same problem as OP. Can someone post a gist or something with a complete trivial example complete w/imports etc.? When I cut 'n pasted this example the compiler complained bout extractFlowMaterializer. On Wednesday, May 27, 2015 at 2:21:37 AM UTC-5, Giovanni Alberto

[akka-user] Re: [akka-http] how does the formFields directive work?

2015-05-27 Thread Ian Phillips
Yes, that works, Thanks! I think that this should probably be mentioned in the docs somewhere. On Wednesday, 27 May 2015 08:21:37 UTC+1, Giovanni Alberto Caporaletti wrote: > > You need both an implicit FlowMaterializer and an implicit > ExecutionContext in scope. I haven't followed the chain

[akka-user] Re: [akka-http] how does the formFields directive work?

2015-05-27 Thread Giovanni Alberto Caporaletti
Got it! Sorry for the spam: implicit def defaultUrlEncodedFormDataUnmarshaller(implicit fm: FlowMaterializer): FromEntityUnmarshaller[FormData] FYI: To find this I had to create fake methods with the implicit parameters required from the code (e.g. def x()(implicit a: FromEntityUnmarshaller [S

[akka-user] Re: [akka-http] how does the formFields directive work?

2015-05-27 Thread Giovanni Alberto Caporaletti
Well, since I'm here, let me ask: all the marshalling code requires an execution context (I can see that), but why a materializer? I can't find where the implicit mat is needed anywhere Thanks G On Wednesday, 27 May 2015 09:21:37 UTC+2, Giovanni Alberto Caporaletti wrote: > > You need both an

[akka-user] Re: [akka-http] how does the formFields directive work?

2015-05-27 Thread Giovanni Alberto Caporaletti
You need both an implicit FlowMaterializer and an implicit ExecutionContext in scope. I haven't followed the chain to check why those are needed but basically I keep adding them (one or the other or both) wherever I have compilation errors and it works. It should be something related to marsha