Thanks so much Andre!

This was exactly what I was looking for.

Kind regards,
Jacobus



On Tue, Dec 8, 2015 at 6:15 PM, André <[email protected]> wrote:

> Oops, wrong list!
>
> Just use .* (see
> http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M2/scala/http/routing-dsl/directives/form-field-directives/formFields.html
> )
>
> HTH
> André
>
>
> On Tuesday, December 8, 2015 at 10:17:07 AM UTC+1, André wrote:
>>
>> Hi Jacobus,
>>
>> it's currently not possible to extract a sequence of values with the
>> formFields directive. See this post[1] on how to extract all form fileds.
>>
>> FYI: akka-http recently added the * receptacle to extract sequences. [2]
>>
>> [1] https://groups.google.com/d/msg/spray-user/Uqp0C0hOMvQ/rxQy0crJ_70J
>> [2] https://github.com/akka/akka/pull/17107
>>
>> Cheers
>> André
>>
>>
>> On Monday, December 7, 2015 at 11:24:50 PM UTC+1, Jacobus wrote:
>>>
>>> Hi guys,
>>>
>>> I receive message content from a monitoring device in a formal like this:
>>>
>>> POST /monitor/status HTTP/1.1
>>> Host: testingtesting.com
>>>
>>> Connection:
>>> Keep-Alive
>>> Content-Type:
>>> application/x-www-form-urlencoded
>>> Authorization: Basic cmVtb3RlX2 cmVtb3RlX2NsaWVudNsaWVud=
>>>
>>> Content-Length: 78
>>>
>>>
>>>
>>> &reading[0]=0004A38E5835;
>>> &reading[1]=0004A3D3F18B;
>>>
>>> &reading[2]=0004A3D3F18B;
>>>
>>>
>>> Now if there was only one reading, then I could just use:
>>>
>>> formFields('reading) { reading =>
>>>   complete {
>>>     logger.debug("Monitoring data received: " + reading)
>>>     ....
>>>    }
>>>
>>> But what is the best way to access an array of measurements like the
>>> ones above. Is there some sort of directive available for this?
>>>
>>> Thanks in advance. I hope there is someone out there who had a little
>>> more coffee than me.
>>>
>>> Kind regards,
>>> Jacobus
>>>
>> --
> >>>>>>>>>> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/Wzd6MxAi1UI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to