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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spray...@googlegroups.com
Ah, method(HttpMethods.OPTIONS) seems to do the trick.
Mathias
unread,
Jan 22, 2013, 3:55:28 PM1/22/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.