How to field an OPTIONS request from a Spray-based server?

39 views
Skip to first unread message

Kevin Esler

unread,
Jan 22, 2013, 1:48:14 PM1/22/13
to spray...@googlegroups.com
How should I field an OPTIONS request in my Spray-based server?  There seems to be no "options" routing directive.
I'm using 1.0-M7.

Kevin Esler

unread,
Jan 22, 2013, 1:56:07 PM1/22/13
to spray...@googlegroups.com
Ah, method(HttpMethods.OPTIONS) seems to do the trick.

Mathias

unread,
Jan 22, 2013, 3:55:28 PM1/22/13
to spray...@googlegroups.com
Yes, Kevin, that works.

However, I think even though OPTIONS requests are certainly not the most frequently used ones they still deserve their own matching directive.
So I just added it.

Thanks for asking!

Cheers,
Mathias

---
mat...@spray.io
http://spray.io
> --
>
>

Reply all
Reply to author
Forward
0 new messages