Tag Archives: spray

Control-Allow-Origin in Spray

It is 2013, we have modern browsers. And these browsers do not like to load resources from origin that’s different from the resource being displayed. So, if you have a page at http://www.foo.com and want to make a request to … Read more

This week in #Scala (11/01/2013)

Welcome to another edition of #ThisWeekInScala. I’d like to begin with an introduction to the Scala Improvement Process or SIP for short.  Martin Odersky encouraged participation during his keynote at the Scala eXchange towards the end of last year. There’s a … Read more

Errors, failures: I’m a teapot

Imagine you want to use the HTTP status codes to indicate failures in your Akka & Spray application. You receive a (JSON) request that maps to known route and can be unmarshalled into an instance of your object. But alas! … Read more

Purity and dirty secrets

I left a dirty secret lurking in my previous post about 2 phase authentication with text messages. I hope many of you felt uneasy reading the val secret = generateSecret line. The generateSecret thing has no place in purely functional … Read more

Spray client, Spray and text messages

This is another sample that will make its way to the Akka Patterns project. But for now, you’ll have to settle for a short blog post explaining how Akka Patterns is going to implement two-phase login using text messaging. Just … Read more